Hadoop Multi-node cluster installation Guide

Source: Internet
Author: User
Tags ssh

We use 2 nodes to install the Hadoop cluster, where 192.168.129.35 is the primary node and the 192.168.129.34 is from the node.

Create a user named Hadoop-user on both the Master node (192.168.129.35) and from the node (192.168.129.34)

Master node (192.168.129.35) log in Hadoop-user

Because the Hadoop cluster requires a master node to assume the Namenode and Jobtracker daemons, and assume responsibility for connecting and activating other Datanode and Tasktracker daemons from node (slave node). And their communications in Hadoop are using SSH without a password, so we have to configure SSH without a password.

First verify that SSH is installed:

which SSH

Which sshd

Which Ssh-keygen

SSH password is generated on the master node (192.168.129.35)

SSH-KEYGEN-T RSA

View public key information on the master node (192.168.129.35):

Cat ~/.ssh/id_rsa.pub

Copy the public key from the Master node (192.168.129.35) to each Hadoop node, because we already have the master node, so we publish it to the node 192.168.129.34

To run from the Master node (192.168.129.35):

SCP ~/.ssh/id_rsa.pub Hadoop-user@192.168.129.34:~/master_key

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.