title: $HADOOP_HOME is deprecated ,Hadoop
body: <p>I tried to install Hadoop on a single node cluster (my own labtop-ubuntu 12.04). 
  I followed this tutorial and checked it line by line two times .
  <a href="http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/" rel="noreferrer">http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/</a> </p>
  
  <p>everything seems correct. I set all the core-site.xml ,mapred-site.xml ,hdfs-site.xml .</p>
  
  <p>when I run the following command in hduser su :</p>
  
  <pre><code>hduser@maziyar-Lenovo-IdeaPad-U300s:~$ /usr/local/hadoop/usr/sbin/start-all.sh
  </code></pre>
  
  <p>I get the following errors : </p>
  
  <pre><code>Warning: $HADOOP_HOME is deprecated.
  
  starting namenode, logging to /usr/local/hadoop/usr/libexec/../logs/hadoop-hduser-namenode-maziyar-Lenovo-IdeaPad-U300s.out
  cat: /usr/local/hadoop/usr/libexec/../etc/hadoop/slaves: No such file or directory
  cat: /usr/local/hadoop/usr/libexec/../etc/hadoop/masters: No such file or directory
  starting jobtracker, logging to /usr/local/hadoop/usr/libexec/../logs/hadoop-hduser-jobtracker-maziyar-Lenovo-IdeaPad-U300s.out
  cat: /usr/local/hadoop/usr/libexec/../etc/hadoop/slaves: No such file or directory
  </code></pre>
  
  <p>I added the export HADOOP_HOME_WARN_SUPPRESS="TRUE" into hadoop-env.sh and still same error.</p>
  
  <p>On the file /home/hduser/.bashrc where I guess my error comming from I have : </p>
  
  <pre><code># Set Hadoop-related environment variables
  export HADOOP_HOME=/usr/local/hadoop
  
  # Set JAVA_HOME (we will also configure JAVA_HOME directly for Hadoop later on)
  export JAVA_HOME=/usr/lib/jvm/jdk-7u10-linuxi586/usr/java/jdk1.7.0_10
  
  # Some convenient aliases and functions for running Hadoop-related commands
  unalias fs &amp;&gt; /dev/null
  alias fs="hadoop fs"
  unalias hls &amp;&gt; /dev/null
  alias hls="fs -ls"
  
  # If you have LZO compression enabled in your Hadoop cluster and
  # compress job outputs with LZOP (not covered in this tutorial):
  # Conveniently inspect an LZOP compressed file from the command
  # line; run via:
  #
  # $ lzohead /hdfs/path/to/lzop/compressed/file.lzo
  #
  # Requires installed 'lzop' command.
  #
  lzohead () {
      hadoop fs -cat $1 | lzop -dc | head -1000 | less
  }
  
  # Add Hadoop bin/ directory to PATH
  export PATH=$PATH:$HADOOP_HOME/usr/sbin
  </code></pre>
  
  <p>I added /usr/sbin as a bin directory because start-all.sh and commands are there. </p>
  
  <p>I also tried "HADOOP_PREFIX" instead of "HADOOP_HOME" in bashrc file but still the same error.</p>
  
  <p>I have this folders in my hadoop directory ,</p>
  
  <pre><code>maziyar@maziyar-Lenovo-IdeaPad-U300s:/usr/local/hadoop$ ls -lha
  total 20K
  drwxr-xr-x  5 hduser hadoop 4.0K May 30 15:25 .
  drwxr-xr-x 12 root   root   4.0K May 30 15:25 ..
  drwxr-xr-x  4 hduser hadoop 4.0K May 30 15:25 etc
  drwxr-xr-x 12 hduser hadoop 4.0K Jun  4 21:29 usr
  drwxr-xr-x  4 hduser hadoop 4.0K May 30 15:25 var
  </code></pre>
  
  <p>I downloaded the latest version of apache-hadoop last week: hadoop-1.1.2-1.i386.rpm</p>