Install Hadoop and related components automatically
Install and configure hadoop is tedious, so I build a script to do this process automatically.
The git project can be found here install hadoop.
1. Configure Hosts
Let’s assume you have 3 hosts hadoop001/hadoop002/hadoop003, and configured access each other with ssh key(withput entering password).
If not, do as following steps.
Make sure you can access them with your private key(you can login to them directly with command “ssh root@hadoop001”), then execute
|
or use the IP instead:
|
this script will generate ssh key in each host, and append all the public keys in “/root/.ssh/authorized_keys” for each hosts.
Verify
|