如何解决启动hive时出现的SafeModeException错误?
- 内容介绍
- 相关推荐
本文共计143个文字,预计阅读时间需要1分钟。
启动Hive时出错:Exception in thread main java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.ipc.RetriableException
启动hive的时候报错:Exceptioninthreadmainjava.lang.RuntimeException:org.apache.hadoop.i启动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节点的安全模式即可:
[hadoopdjt11 bin]$ hadoop dfsadmin -safemode leave
本文共计143个文字,预计阅读时间需要1分钟。
启动Hive时出错:Exception in thread main java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.ipc.RetriableException
启动hive的时候报错:Exceptioninthreadmainjava.lang.RuntimeException:org.apache.hadoop.i启动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节点的安全模式即可:
[hadoopdjt11 bin]$ hadoop dfsadmin -safemode leave

