O'Reilly logo

Hadoop Operations and Cluster Management Cookbook by Shumin Guo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Configuring SSH

SSH is the de facto standard protocol for secure data connection and remote command execution. Proper configuration of SSH is required for Hadoop installation. In this section, we are going to learn how to configure SSH on the cluster nodes. Specifically, we are discussing how to configure SSH for a passwordless login to a remote machine.

Getting ready

Start up the SSHD service on all the cluster nodes (both the slave nodes and the master node) with the following command:

sudo service sshd start

Make the service survive system reboot with the command:

sudo chkconfig sshd on

Verify whether sshd works properly with the command from the master node:

ssh hduser@slave1

If it is the first time of logging into to the host, we will get a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required