i

Hadoop Tutorial

SSH Setup With Key Generation

This SSH setup is required to do different operations on a cluster such as starting and stopping, distributed daemon shell operations. It is necessary to provide a public/private key pair for a Hadoop user and share it with different users.

Step 5: We assume that you have SSH and running on your machine and configured it to allow SSH public key authentication. If not, first install the ssh server on your computer.

You can also install this from Ubuntu Software Center by searching for openssh-server

Step 6: Now generate the ssh key for communication:

Continue with entering, and it will give you the following output.

Step7: Now, we will copy the public keys form id_rsa.pub to authorized_keys so that ssh should not require passwords every time and provide the permission of the authorized_keys file to have all permits for hduser.

Step8: Please restart ssh to incorporate the changes.

Step9: Now, let's check it is working or not. You should be able to connect without a password. Just run:

$ ssh localhost

It should return the output as below screen: