title: Hadoop error can not start-all.sh
body: <p>I've setup a hadoop in my laptop single mode.
  info: Ubuntu 12.10, jdk 1.7 oracle, install hadoop from .deb file.
  location: 
  /etc/hadoop
  /usr/share/hadoop</p>
  
  <p>I have config in /usr/share/hadoop/templates/conf/core-site.xml I add 2 properties</p>
  
  <pre><code>    &lt;property&gt;
    &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
    &lt;value&gt;/app/hadoop/tmp&lt;/value&gt;
    &lt;description&gt;A base for other temporary directories.&lt;/description&gt;
  &lt;/property&gt;
  
  &lt;property&gt;
    &lt;name&gt;fs.default.name&lt;/name&gt;
    &lt;value&gt;hdfs://localhost:9000&lt;/value&gt;
    &lt;description&gt;The name of the default file system.  A URI whose
    scheme and authority determine the FileSystem implementation.  The
    uri's scheme determines the config property (fs.SCHEME.impl) naming
    the FileSystem implementation class.  The uri's authority is used to
    determine the host, port, etc. for a filesystem.&lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>in hdfs-site.xml </p>
  
  <pre><code>&lt;property&gt;
    &lt;name&gt;dfs.replication&lt;/name&gt;
    &lt;value&gt;1&lt;/value&gt;
    &lt;description&gt;Default block replication.
    The actual number of replications can be specified when the file is created.
    The default is used if replication is not specified in create time.
    &lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>in mapred-site.xml</p>
  
  <pre><code>    &lt;property&gt;
    &lt;name&gt;mapred.job.tracker&lt;/name&gt;
    &lt;value&gt;localhost:9001&lt;/value&gt;
    &lt;description&gt;The host and port that the MapReduce job tracker runs
    at.  If "local", then jobs are run in-process as a single map
    and reduce task.
    &lt;/description&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>when I start with command 
  hduser@sepdau:~$ start-all.sh</p>
  
  <pre><code>starting namenode, logging to /var/log/hadoop/hduser/hadoop-hduser-namenode-sepdau.com.out
  localhost: starting datanode, logging to /var/log/hadoop/hduser/hadoop-hduser-datanode-sepdau.com.out
  localhost: starting secondarynamenode, logging to /var/log/hadoop/hduser/hadoop-hduser-secondarynamenode-sepdau.com.out
  starting jobtracker, logging to /var/log/hadoop/hduser/hadoop-hduser-jobtracker-sepdau.com.out
  localhost: starting tasktracker, logging to /var/log/hadoop/hduser/hadoop-hduser-tasktracker-sepdau.com.out
  </code></pre>
  
  <p>but when I view process by jps</p>
  
  <pre><code>hduser@sepdau:~$ jps
  13725 Jps
  </code></pre>
  
  <p>more </p>
  
  <pre><code> root@sepdau:/home/sepdau# netstat -plten | grep java
  tcp6       0      0 :::8080                 :::*                    LISTEN      117        9953        1316/java       
  tcp6       0      0 :::53976                :::*                    LISTEN      117        16755       1316/java       
  tcp6       0      0 127.0.0.1:8700          :::*                    LISTEN      1000       786271      8323/java       
  tcp6       0      0 :::59012                :::*                    LISTEN      117        16756       1316/java  
  </code></pre>
  
  <p>when I stop-all.sh</p>
  
  <pre><code>    hduser@sepdau:~$ stop-all.sh
  no jobtracker to stop
  localhost: no tasktracker to stop
  no namenode to stop
  localhost: no datanode to stop
  localhost: no secondarynamenode to stop
  </code></pre>
  
  <p>in my hosts file </p>
  
  <pre><code>hduser@sepdau:~$ cat /etc/hosts
  
  127.0.0.1       localhost
  127.0.1.1   sepdau.com
  
  
  
  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  </code></pre>
  
  <p>file slave : localhost master: localhost</p>
  
  <p>here is some log</p>
  
  <pre><code>    hduser@sepdau:/home/sepdau$ start-all.sh
  mkdir: cannot create directory `/var/run/hadoop': Permission denied
  starting namenode, logging to /var/log/hadoop/hduser/hadoop-hduser-namenode-sepdau.com.out
  /usr/sbin/hadoop-daemon.sh: line 136: /var/run/hadoop/hadoop-hduser-namenode.pid: No such file or directory
  localhost: mkdir: cannot create directory `/var/run/hadoop': Permission denied
  localhost: starting datanode, logging to /var/log/hadoop/hduser/hadoop-hduser-datanode-sepdau.com.out
  localhost: /usr/sbin/hadoop-daemon.sh: line 136: /var/run/hadoop/hadoop-hduser-datanode.pid: No such file or directory
  localhost: mkdir: cannot create directory `/var/run/hadoop': Permission denied
  localhost: starting secondarynamenode, logging to /var/log/hadoop/hduser/hadoop-hduser-secondarynamenode-sepdau.com.out
  localhost: /usr/sbin/hadoop-daemon.sh: line 136: /var/run/hadoop/hadoop-hduser-secondarynamenode.pid: No such file or directory
  mkdir: cannot create directory `/var/run/hadoop': Permission denied
  starting jobtracker, logging to /var/log/hadoop/hduser/hadoop-hduser-jobtracker-sepdau.com.out
  /usr/sbin/hadoop-daemon.sh: line 136: /var/run/hadoop/hadoop-hduser-jobtracker.pid: No such file or directory
  localhost: mkdir: cannot create directory `/var/run/hadoop': Permission denied
  localhost: starting tasktracker, logging to /var/log/hadoop/hduser/hadoop-hduser-tasktracker-sepdau.com.out
  localhost: /usr/sbin/hadoop-daemon.sh: line 136: /var/run/hadoop/hadoop-hduser-tasktracker.pid: No such file or directory
  </code></pre>
  
  <p>I use with root user but it have same problem</p>
  
  <p>what I am wrong in here. How to connect to eclipse with hadoop plugin.
  thank for advance</p>