title: Error in creating database in Hive
body: <p>Command</p>
  
  <pre><code>create database IF NOT EXISTS emp;
  </code></pre>
  
  <p>Error</p>
  
  <pre><code>FAILED: Error in metadata: MetaException(message:Got exception: org.apache.hadoop.ipc.RemoteException org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/hive/warehouse/emp.db. Name node is in safe mode.
  The ratio of reported blocks 0.9091 has not reached the threshold 0.9990. Safe mode will be turned off automatically.
          at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInternal(FSNamesystem.java:2055)
          at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:2029)
          at org.apache.hadoop.hdfs.server.namenode.NameNode.mkdirs(NameNode.java:817)
  </code></pre>