在安装hadoop时,当我运行start-dfs.sh命令时,它会显示“找不到这样的文件或目录”

vfhzx4xs  于 2021-05-29  发布在  Hadoop
关注(0)|答案(1)|浏览(1744)

[root@nn1 hadoop-2.9.0]# ./sbin/start-dfs.sh
Starting namenodes on [nn1]
nn1: namenode running as process 2707. Stop it first.
nn1: datanode running as process 2859. Stop it first.
dn1: bash: line 0: cd: /home/user1/hadoop-2.9.0: No such file or directory
dn1: bash: /home/user1/hadoop-2.9.0/sbin/hadoop-daemon.sh: No such file or directory
dn2: bash: line 0: cd: /home/user1/hadoop-2.9.0: No such file or directory
dn2: bash: /home/user1/hadoop-2.9.0/sbin/hadoop-daemon.sh: No such file or directory
Starting secondary namenodes [0.0.0.0]
0.0.0.0: secondarynamenode running as process 3052. Stop it first.
[root@nn1 hadoop-2.9.0]#

供参考:
硕士学位:
主机名=nn1
用户名=user1
奴隶1:
主机名=dn1
用户名=slave1
奴隶2:
主机名=dn2
用户名=slave2

7ivaypg9

7ivaypg91#

您以root用户身份运行命令,而不是 user1 ,它在那里寻找文件。
你真的不应该以根用户身份运行hadoop的任何组件
它还表示您的进程正在运行,所以不清楚为什么要再次启动它们

相关问题