特牛网址导航

hadoop安全模式问题mkdir: Cannot create directory /spark/data/words. Name node is in safe mode._mkdir: cannot create directory /data. name node is-CSDN博客

网友收藏
  • 链接地址:https://blog.csdn.net/qq_43278189/article/details/121235536
  • 链接标题:hadoop安全模式问题mkdir: Cannot create directory /spark/data/words. Name node is in safe mode._mkdir: cannot create directory /data. name node is-CSDN博客
  • 所属网站:blog.csdn.net
  • 被收藏次数:2775
文章浏览阅读1k次,点赞2次,收藏8次。hadoop启动后安全模式问题问题:正常启动hadoop集群后,准备在hadoop里创建一个目录结果出现如下:[root@master ~]# hdfs dfs -mkdir -p /spark/data/words/mkdir: Cannot create directory /spark/data/words. Name node is in safe mode.原因:hdfs在启动开始时会进入安全模式,这时文件系统中的内容不允许修改也不允许删除,直到安全模式结束。安全模式主要是为了系统启动的_mkdir: cannot create directory /data. name node is in safe mode.