Fully distributed cluster startup
- Prepare ssh (you can log in without password)
- Configure ssh
- Keyless configuration
- Group the cluster,
prepare ssh
to connect to the ip address or host name of another computer with ssh
ssh hadoop100
Error Host key verification failed. Keyless
configuration
ssh-keygen -t rsa
Press (three carriage returns), two files id_rsa (private key) and id_rsa.pub (public key) will be generated.
Copy the public key to the machine without login
ssh-copy-id hadoop101
ssh-copy-id hadoop102
ssh-copy-id hadoop103
(Note that each machine must be configured with this)
Group cluster
configuration slaves
cd /opt/module/hadoop-2.7.2/etc/hadoop
vi slaves
Join
hadoop100
hadoop101
hadoop102
Synchronize all node configurations
Mysnc slaves
Start them