title: Hadoop Format NameNode after installation - Error: command not found (UBUNTO)
body: <p>Hello i have just installed Hadoop and cant format namenode
  i am working with Ubunto </p>
  
  <p>and its supposed to be quite simple but i get this error : "command not found"</p>
  
  <pre><code>barak@barak-VirtualBox:/usr/local/hadoop/hadoop-common-project/hadoop-common/src/main/bin$ ls -ltr
  total 76
  -rwxr-xr-x 1 root root  1462   2 23:08 stop-all.sh
  -rw-r--r-- 1 root root  1770   2 23:08 stop-all.cmd
  -rwxr-xr-x 1 root root  1471   2 23:08 start-all.sh
  -rw-r--r-- 1 root root  1779   2 23:08 start-all.cmd
  -rwxr-xr-x 1 root root  2145   2 23:08 slaves.sh
  -rwxr-xr-x 1 root root  1776   2 23:08 rcc
  -rwxr-xr-x 1 root root  1360   2 23:08 hadoop-daemons.sh
  -rwxr-xr-x 1 root root  6452   2 23:08 hadoop-daemon.sh
  -rw-r--r-- 1 root root 11179   2 23:08 hadoop-config.sh
  -rw-r--r-- 1 root root  8023   2 23:08 hadoop-config.cmd
  -rw-r--r-- 1 root root  8298   2 23:08 hadoop.cmd
  -rwxr-xr-x 1 root root  5479   2 23:08 hadoop
  
  barak@barak-VirtualBox:/usr/local/hadoop/hadoop-common-project/hadoop-common/src/main/bin$ sudo hadoop namenode -format
  sudo: hadoop: command not found
  
  barak@barak-VirtualBox:/usr/local/hadoop/hadoop-common-project/hadoop-common/src/main/bin$ hadoop namenode -format
  hadoop: command not found
  </code></pre>
  
  <p>what do i need to do to format my name node ?</p>