我在Ubuntu上有Hadoop 2.9.0
/usr/local/hadoop
但是当我尝试start-dfs.sh
时
启动namenode时不会显示错误
但是当我输入jps
时,只有
10900 SecondaryNameNode
11047 Jps
10696 DataNode
接缝已经开始,而不是名字节点
尝试的事情:
=>删除了临时文件和格式化的名称节点hadoop namenode -format
终端:
blaze@blazian:/tmp$ start-dfs.sh
Starting namenodes on [localhost]
blaze@localhost's password:
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-blaze-namenode-blazian.out
blaze@localhost's password:
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-blaze-datanode-blazian.out
Starting secondary namenodes [0.0.0.0]
blaze@0.0.0.0's password:
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-blaze-secondarynamenode-blazian.out
blaze@blazian:/tmp$ jps
10900 SecondaryNameNode
11047 Jps
10696 DataNode
答案 0 :(得分:0)
您没有使用localhost进行SSH设置。请按照以下步骤操作,您将能够运行namenode。
转到系统终端并输入:
cd(它会将你重定向到〜)
ssh-keygen(点击输入三次,它将在〜中创建一个.ssh目录)
cat id_rsa.pub>> authorized_keys(它将确保您的localhost是受信任的来源并授予权限 无密码ssh。)
然后只需运行start-all.sh
即可完成所有设置。