我在ubuntu上安装了Hadoop2.9.0
/usr/local/hadoop
但当我尝试 start-dfs.sh
启动namenode时没有显示错误,但在键入 jps
,仅限
10900 SecondaryNameNode
11047 Jps
10696 DataNode
接缝已开始,而不是namenode
尝试的事情:=>删除临时文件和格式化namenode 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
1条答案
按热度按时间dsekswqp1#
您没有本地主机的ssh设置。请按照以下步骤操作,您将能够运行namenode。
转到系统终端并键入:
cd(它会将您重定向到~)
ssh keygen(按enter三次,它将在~中创建一个.ssh目录)
cat id_rsa.pub>>授权的\u密钥(它将确保您的本地主机是受信任的源,并授予创建无密码ssh的权限。)
那就跑吧
start-all.sh
你们都准备好了。