AnsweredAssumed Answered

Running Hadoop Commands using MapR Client on Mac

Question asked by Rachel Silver Employee on Apr 26, 2017
Latest reply on May 9, 2017 by aalvarez

Hey, MapR support: after following the directions here, I'm unable to run simple Hadoop commands like "hadoop fs -ls /" from my Mac using the MapR client for Hadoop. 


The errors are: 

  • ERROR Cidcache fs/client/fileclient/cc/ Thread: 123145304514560 MoveToNextCldb: No CLDB entries, cannot run, sleeping 5 seconds!
  • ERROR Client fs/client/fileclient/cc/ Thread: 123145304514560 Failed to initialize client for cluster, error Operation timed out(60)
    ls: Could not create FileClient


This is for MapR 5.2.1+MEP 3.0


The steps that I have followed: 


  • Downloaded the MapR client for Mac: mapr-client-
  • Set Environment Variables in ~/.bash_profile:
    • export JAVA_HOME="$(/usr/libexec/java_home)"
      export MAPR_HOME=/opt/mapr
  • Added symlinks:
    • ln -s /opt/mapr/hadoop/hadoop-0.20.2/bin/hadoop /usr/local/bin/hadoop1
    • ln -s /opt/mapr/hadoop/hadoop-2.7.0/bin/hadoop /usr/local/bin/hadoop2
    • ln -s /opt/mapr/bin/hadoop /usr/local/bin/hadoop
  • Set path in ~/.bash_profile
    • export PATH=/opt/mapr/bin:/opt/mapr/hadoop/hadoop-2.7.0/bin:/opt/mapr/hadoop/hadoop-0.20.2/bin:${PATH}
  • Added the following to local /opt/mapr/hadoop/hadoop-2.7.0/etc/hadoop/mapred-site.xml
    • <property>
  • Added the following to local /opt/mapr/hadoop/hadoop-2.7.0/etc/hadoop/core-site.xml
    • <property>


What can I do to troubleshoot these errors?