当我创建hdfs目录时,它说:mkdir:cannotcreatedirectory/user名称节点处于安全模式

huwehgph  于 2021-05-27  发布在  Hadoop
关注(0)|答案(0)|浏览(640)

我想在ubuntu 20.04上安装Hadoop2.10.1。当我想根据tutorial:hadoop:设置单节点群集。上面说:

yarnhdoop@tcguoxing-QJC4:~/hadoop-2.10.1$ bin/hdfs dfs -mkdir /user
mkdir: Cannot create directory /user. Name node is in safe mode.

然后我想让name node离开安全模式,它说:

yarnhdoop@tcguoxing-QJC4:~/hadoop-2.10.1$ bin/hdfs dfsadmin -safemode leave
safemode: Access denied for user yarnhdoop. Superuser privilege is required

所以我认为用户'yarnhdoop'不够高,然后我在用户'root'下执行这个命令。上面写着:

root@tcguoxing-QJC4:/home/yarnhdoop/hadoop-2.10.1# bin/hdfs dfsadmin -safemode leave
safemode: Access denied for user root. Superuser privilege is required

下面的步骤困扰了好几天。

我应该换成旧的hadoop版本吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题