如何在不询问本地计算机密码的情况下启动hadoop?

798qvoo8  于 2021-06-02  发布在  Hadoop
关注(0)|答案(2)|浏览(289)
amtex@amtex-desktop:~$ start-all.sh

此脚本已弃用。而是在[localhost]上使用start-dfs.sh和start-yarn.sh起始名称节点
amtex@localhost的密码:localhost:starting namenode,登录到/home/amtex/documents/installed/hadoop/logs/hadoop-amtex-namenode-amtex-desktop.out

amtex@localhost's password:

localhost:启动datanode,登录到/home/amtex/documents/installed/hadoop/logs/hadoop-amtex-datanode-amtex-desktop.out启动辅助namenodes[0.0.0.0]

amtex@0.0.0.0's password:

0.0.0.0:启动secondarynamenode,登录到/home/amtex/documents/installed/hadoop/logs/hadoop-amtex-secondarynamenode-amtex-desktop.out启动yarn守护进程启动resourcemanager,登录到/home/amtex/documents/installed/hadoop/logs/yarn-amtex-resourcemanager-amtex-desktop.out

amtex@localhost's password:

localhost:启动nodemanager,登录到/home/amtex/documents/installed/hadoop/logs/yarn-amtex-nodemanager-amtex-desktop.out

amtex@amtex-desktop:~$ jps
2404 Startup
18244 DataNode
18580 ResourceManager
18101 NameNode
18889 NodeManager
18425 SecondaryNameNode
18924 Jps
soat7uwm

soat7uwm1#

根据我的研究,我遵循以下步骤来避免上述问题
第一步: ssh-keygen -t rsa -P "" 第二步: cat $HOME/.ssh/id_rsa.pub >> $HOME/.ssh/authorized_keys 现在我开始使用hadoop

amtex@amtex-desktop:~$ start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting namenodes on [localhost]
localhost: starting namenode, logging to /home/amtex/Documents/installed/hadoop/logs/hadoop-amtex-namenode-amtex-desktop.out
localhost: starting datanode, logging to /home/amtex/Documents/installed/hadoop/logs/hadoop-amtex-datanode-amtex-desktop.out
Starting secondary namenodes [0.0.0.0]
0.0.0.0: starting secondarynamenode, logging to /home/amtex/Documents/installed/hadoop/logs/hadoop-amtex-secondarynamenode-amtex-desktop.out
starting yarn daemons
starting resourcemanager, logging to /home/amtex/Documents/installed/hadoop/logs/yarn-amtex-resourcemanager-amtex-desktop.out
localhost: starting nodemanager, logging to /home/amtex/Documents/installed/hadoop/logs/yarn-amtex-nodemanager-amtex-desktop.out
amtex@amtex-desktop:~$ start-master.sh
starting org.apache.spark.deploy.master.Master, logging to /home/amtex/Documents/installed/spark/logs/spark-amtex-org.apache.spark.deploy.master.Master-1-amtex-desktop.out
amtex@amtex-desktop:~$ start-slaves.sh
localhost: starting org.apache.spark.deploy.worker.Worker, logging to /home/amtex/Documents/installed/spark/logs/spark-amtex-org.apache.spark.deploy.worker.Worker-1-amtex-desktop.out

amtex@amtex-desktop:~$ jps

21523 Jps
2404 Startup
21029 NodeManager
20581 DataNode
20439 NameNode
20760 SecondaryNameNode
21353 Master
21466 Worker
20911 ResourceManager
lokaqttq

lokaqttq2#

您需要在计算机之间设置无密码登录
下面的链接有一个逐步的过程来设置ssh无密码登录
http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/
希望这有帮助!!!。。。

相关问题