title: Native Code Library not found
body: <p>I have installed Hadoop-2.6.0 in Mac OS (10.11.*)
  Have followed the procedure given in the link
  <a href="http://zhongyaonan.com/hadoop-tutorial/setting-up-hadoop-2-6-on-mac-osx-yosemite.html" rel="nofollow">http://zhongyaonan.com/hadoop-tutorial/setting-up-hadoop-2-6-on-mac-osx-yosemite.html</a></p>
  
  <p>While Starting NameNode and DataNode</p>
  
  <pre><code>sbin/start-dfs.sh
  </code></pre>
  
  <p>Am getting the following two errors.</p>
  
  <ol>
  <li>Not able to recognize the native-hadoop Libray</li>
  <li>SSH to port connected 22 failed</li>
  </ol>
  
  <blockquote>
    <p>Starting secondary namenodes [2016-02-15 22:46:36,600 WARN  [main]
    util.NativeCodeLoader (NativeCodeLoader.java:(62)) - Unable to
    load native-hadoop library for your platform... using builtin-java
    classes where applicable  0.0.0.0]</p>
    
    <p>ssh: connect to host to port 22: Connection refused</p>
    
    <p>JPS gives me</p>
    
    <p>7102 Jps</p>
  </blockquote>
  
  <p>Kindly help me resolving it</p>
  
  <h1>Error Details</h1>
  
  <p>Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
   and 
  ssh: connect to host to port 22: Connection refused</p>
  
  <p>Below are the configurations am using</p>
  
  <h1>Hadoop-env.sh</h1>
  
  <pre><code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
  export HADOOP_PREFIX=/library/hadoop-2.6.0/
  
  export HADOOP_CONF_DIR=/Library/hadoop-2.6.0/
  
  
  export HADOOP_OPTS="$HADOOP_OPTS -Djava.net.preferIPv4Stack=true"
  </code></pre>
  
  <h1>Profile :</h1>
  
  <pre><code>export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home
  export HADOOP_INSTALL=/Library/hadoop-2.6.0
  export HADOOP_CONF_DIR=$HADOOP_INSTALL/etc/hadoop/
  export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
  export HADOOP_COMMON_HOME=$HADOOP_INSTALL
  export HADOOP_HDFS_HOME=$HADOOP_INSTALL
  export YARN_HOME=$HADOOP_INSTALL
  export PATH=$PATH:$HADOOP_INSTALL/bin:$HADOOP_INSTALL/sbin
  export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_INSTALL/lib/native
  export HADOOP_OPTS="-Djava.library.path=$HADOOP_INSTALL/lib"
  </code></pre>
  
  <p>Please note I have went thru multiple blogs and not able to resolve it out.
  Have enabled the Remote Sharing in System Preferences too </p>