我有独立的hadoop 3.0.0在Ubuntu 16.04上运行并转换为Suedo分布式,并且在使用命令运行Master和salve Nodes的阶段
$ sudo /usr/local/hadoop/sbin/start-dfs.sh
结果显示为
[sudo] password for tc:
/usr/local/hadoop/etc/hadoop/hadoop-env.sh: line 1: #: command not found
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
Starting namenodes on [localhost]
/usr/local/hadoop/etc/hadoop/hadoop-env.sh: line 1: #: command not found
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
localhost: Permission denied (publickey,password).
Starting datanodes
/usr/local/hadoop/etc/hadoop/hadoop-env.sh: line 1: #: command not found
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
localhost: Permission denied (publickey,password).
Starting secondary namenodes [tc-ThinkCentre-M91p-Invalid-entry-length-16-Fixed-up-to-11]
/usr/local/hadoop/etc/hadoop/hadoop-env.sh: line 1: #: command not found
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
tc-ThinkCentre-M91p-Invalid-entry-length-16-Fixed-up-to-11: Permission denied (publickey,password).
WARNING: HADOOP_SECURE_DN_USER has been replaced by HDFS_DATANODE_SECURE_USER. Using value of HADOOP_SECURE_DN_USER.
我无法理解为什么要说出来;
localhost:权限被拒绝(公钥,密码)。
当我输入root用户密码时 我已将hadoop-env.sh设置为;
export HDFS_DATANODE_USER=root
export HADOOP_SECURE_DN_USER=hdfs
export HDFS_NAMENODE_USER=root
export HDFS_SECONDARYNAMENODE_USER=root
有人可以告诉我为什么我收到此消息?
localhost:权限被拒绝(公钥,密码)。
我应该关注
hadoop-env.sh:第1行:#:未找到命令