刚刚在hadoop想创建一个目录的时候,发现报错了

具体信息如下:

[hadoop@mini1 hadoop-2.6.4]$ hadoop fs -mkdir /file
mkdir: Cannot create directory /file. Name node is in safe mode.

从错误信息可以看到hadoop当前的namenode是处于安全模式。

解决:

[hadoop@mini1 hadoop-2.6.4]$ hadoop  dfsadmin -safemode leave
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

Safe mode is OFF

再次执行创建目录的的命令,成功

mkdir: Cannot create directory /file. Name node is in safe mode.

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2021-09-25
  • 2022-12-23
  • 2021-12-12
  • 2021-11-22
  • 2022-12-23
  • 2021-10-21
猜你喜欢
  • 2022-12-23
  • 2021-11-30
  • 2022-01-20
  • 2021-08-01
  • 2022-02-27
  • 2021-06-09
  • 2021-09-07
相关资源
相似解决方案