NameNode need to start the Hadoop Hadoop cluster daemons all machines, this process needs to be achieved through SSH login
Hadoop does not provide input in the form of SSH login password, therefore, to be able to successfully log on each machine, you need to configure all the machines you can avoid dense login NameNode
Because it is a double master, so it is necessary both to generate ssh keys on the master server and master_backup, can log on to other servers to avoid close
Generate SSH public and private keys
Enter the command in the master server and master_backup
ssh-keygen -t rsa
Press Enter key four times, to generate public and private keys secret Free
Copy the public key to the specified server configuration
ssh-copy-id -i ~/.ssh/id_rsa.pub master ssh-copy-id -i ~/.ssh/id_rsa.pub master-backup ssh-copy-id -i ~/.ssh/id_rsa.pub node1 ssh-copy-id -i ~/.ssh/id_rsa.pub node2 ssh-copy-id -i ~/.ssh/id_rsa.pub node3
Input command respectively above and master_backup master server, and then prompted to enter the password corresponding to the server account, the public key corresponding to the server copy
Clients connect to remote server via ssh, you can log in secret so as not to
ssh node1
Disclaimer: This article was published in the original garden blog , author AllEmpty herein welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise regarded as infringement.
On the blog: http: //www.cnblogs.com/EmptyFS/