启动hadoop时权限被拒绝

ccrfmcuu  于 2021-06-03  发布在  Hadoop
关注(0)|答案(0)|浏览(661)

我正在centos 7上运行hadoop 2.7.1。
调用脚本start-dfs.sh时,出现以下错误:

localhost: starting datanode, logging to /usr/bin/hadoop/logs/hadoop-hadoop-   datanode-localhost.localdomain.out
localhost: nice: /usr/bin/hadoop/share/hadoop/hdfs/bin/hdfs: Permission denied

环境变量设置为:

HADOOP_HOME=/usr/bin/hadoop
HADOOP_HDFS_HOME=/usr/bin/hadoop/share/hadoop/hdfs
HADOOP_COMMON_LIB_NATIVE_DIR=/usr/bin/hadoop/lib/native
HADOOP_CLASSPATH=/usr/bin/hadoop/share/hadoop/hdfs/*

core-site.xml:

<property>
    <name>fs.defaultFS</name>
    <value>hdfs://localhost:9000</value>
</property>

尚未设置hdfs-site.xml。在过去的几天里,我一直在努力,所以我也会对任何一个网站的链接提供帮助,并对每个选项进行详细的解释。
tnx公司
附加:

/usr/bin/hadoop/logs:hadoop]start-dfs.sh
Starting namenodes on [localhost]
59: starting hadoop-daemons.sh
hadoop@localhost's password: 
localhost: starting namenode, logging to /usr/bin/hadoop/logs/hadoop-hadoop-namenode-localhost.localdomain.out
localhost: nice: /usr/bin/hadoop/share/hadoop/hdfs/bin/hdfs: No such file or directory
73: starting hadoop-daemons.sh
hadoop@localhost's password: 
localhost: starting datanode, logging to /usr/bin/hadoop/logs/hadoop-hadoop-datanode-localhost.localdomain.out
localhost: nice: /usr/bin/hadoop/share/hadoop/hdfs/bin/hdfs: No such file or directory
Starting secondary namenodes [0.0.0.0]
The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
ECDSA key fingerprint is 14:f8:1e:51:32:e9:25:94:45:99:5d:a6:01:89:a2:7d.
Are you sure you want to continue connecting (yes/no)? no
0.0.0.0: Host key verification failed.

暂无答案!

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

相关问题