Fully distributed cluster startup

Fully distributed cluster startup

  1. Prepare ssh (you can log in without password)
  2. Configure ssh
  3. Keyless configuration
  4. 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)

Insert picture description here
Group cluster
configuration slaves

cd /opt/module/hadoop-2.7.2/etc/hadoop
vi slaves

Join

hadoop100
hadoop101
hadoop102

Insert picture description here
Synchronize all node configurations

Mysnc slaves

Start them

Guess you like

Origin blog.csdn.net/houzhicongone/article/details/114706361