title: Starting Hadoop DFS - no such file or directory in $HADOOP_HOME/bin/hdfs?
body: <p>I'm setting up a single Hadoop node, but when running <code>$HADOOP_HOME/sbin/start-dfs.sh</code> it prints that it cannot find <code>$HADOOP_HOME/bin/hdfs</code>. The file at that location exists though, and I can read it perfectly fine.</p>
  
  <p>Log from the start-dfs.sh script:</p>
  
  <pre><code>root@hadoop:/opt/hadoop-2.7.3# sbin/start-dfs.sh
  Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
  Starting namenodes on []
  localhost: starting namenode, logging to /opt/hadoop-2.7.3/logs/hadoop-root-namenode-hadoop.out
  localhost: nice: ‘$HADOOP_HOME/bin/hdfs’: No such file or directory
  localhost: starting datanode, logging to /opt/hadoop-2.7.3/logs/hadoop-root-datanode-hadoop.out
  localhost: nice: ‘$HADOOP_HOME/bin/hdfs’: No such file or directory
  Error: Could not find or load main class org.apache.hadoop.hdfs.tools.GetConf
  </code></pre>
  
  <p>As far as I can tell all my path variables are set correctly (echo $HADOOP_HOME returns the correct directory).</p>