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.

Solutions on the web37

  • via Stack Overflow by valli n
    , 9 months ago
    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.
  • Cannot create directory /user/hive/warehouse/x. Name node is in safe mode. The ratio of reported blocks 0.0000 has not reached the threshold 0.9990. Safe mode will be turned off automatically.
  • Cannot delete /usr/local/hadoop/hadoop-datastore/hadoop-hadoop/mapred/system. 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.
  • Stack trace

    • 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)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.