问题随记 —— Cannot create directory /tmp/hive. Name node is in safe mode.
Posted 繁依Fanyi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题随记 —— Cannot create directory /tmp/hive. Name node is in safe mode.相关的知识,希望对你有一定的参考价值。
文章目录
问题描述
Hive 启动时出现以下问题:
Exception in thread "main" java.lang.RuntimeException: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /tmp/hive. Name node is in safe mode.
The reported blocks 51 has reached the threshold 0.9990 of total blocks 51. The number of live datanodes 2 has reached the minimum number 0. In safe mode extension. Safe mode will be turned off automatically in 2 seconds.
解决方法
输入以下命令关闭 HDFS 的安全模式即可。
hdfs dfsadmin -safemode leave
以上是关于问题随记 —— Cannot create directory /tmp/hive. Name node is in safe mode.的主要内容,如果未能解决你的问题,请参考以下文章
cannot create directory linux 中mkdir时候出现的问题解决