启动hive报SafeModeException的错误

xiaoxiao2021-02-28  67

启动hive的时候,报错:

Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.ipc.RetriableException): org.apache.hadoop.hdfs.server.namenode.SafeModeException: 

Cannot create directory /tmp/hive/hadoop/676cc92f-18b0-4ca9-a1c6-80b061d7e974. Name node is in safe mode. The reported blocks 9 needs additional 7 blocks to reach the threshold 0.9990 of total blocks 16. The number of live datanodes 3 has reached the minimum number 0. Safe mode will be turned off automatically once the thresholds have been reached.

关闭namenode节点的安全模式即可:

[hadoop@djt11 bin]$ hadoop dfsadmin -safemode leave

转载请注明原文地址: https://www.6miu.com/read-46906.html

最新回复(0)