title: Name node is in safe mode. Not able to leave. Hadoop 2.6.0
body: <p>I am new to hadoop and i am just trying to see how things work. I am following this <a href="https://kishorer.in/2014/10/22/running-a-wordcount-mapreduce-example-in-hadoop-2-4-1-single-node-cluster-in-ubuntu-14-04-64-bit/" rel="nofollow noreferrer">tutorial</a> for WordCount . But in step 9 when i execute</p>
  
  <pre><code>hduser@spyros:/usr/local/hadoop/etc/hadoop$ hadoop dfs -mkdir -p /usr/local/hadoop/input
  </code></pre>
  
  <p>I am taking this message :</p>
  
  <pre><code>DEPRECATED: Use of this script to execute hdfs command is deprecated.
  Instead use the hdfs command for it.
  
  mkdir: Cannot create directory /usr/local/hadoop/input. Name node is in safe mode.
  </code></pre>
  
  <p>I tried everything from <a href="https://stackoverflow.com/questions/15803266/name-node-is-in-safe-mode-not-able-to-leave">here</a> and i take the message:</p>
  
  <pre><code>Safe mode is OFF
  </code></pre>
  
  <p>but nothing changed still not able to create directory.
  Is there anything else i could try?
  Using Hadoop 2.6.0 on Ubuntu 16.04LTS.</p>