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

How to start hadoop without asking local machine password?

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

此脚本已弃用。而是使用 start-dfs.sh 和 start-yarn.sh 在 [localhost]

上启动名称节点

amtex@localhost 的密码: localhost:启动namenode,记录到/home/amtex/Documents/installed/hadoop/logs/hadoop-amtex-namenode-amtex-desktop.out

amtex@localhost's password: 

localhost:启动数据节点,记录到 /home/amtex/Documents/installed/hadoop/logs/hadoop-amtex-datanode-amtex-desktop.out 启动辅助名称节点 [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 启动纱线守护进程 启动资源管理器,记录到 /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

机器之间需要设置密码少登录

下面 link 有设置 ssh 密码少登录的分步过程

http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/

希望对您有所帮助!!!...

根据我的研究,我遵循以下步骤来避免上述问题

第 1 步: ssh-keygen -t rsa -P ""

第 2 步: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