Spark tutorial-Build a spark cluster-configure the hadoop standalone mode and run wordcount (1)

Source: Internet
Author: User
  1. Install SSH

Hadoop uses SSH for communication. In this case, we need to set the password to null, that is, no password is required to log on. This eliminates the need to enter a secret during each communication. The installation is as follows:

Enter "Y" for installation and wait for the automatic installation to complete.

Start the service after installing SSH

Run the following command to verify that the service is properly started:

You can see that SSH is started normally;

Set password-free logon to generate the private key and public key:

In/root /. two files are generated in SSH: id_rsa and id_rsa.pub. id_rsa is the private key and id_rsa.pub is the public key. We append the Public Key id_rsa.pub to authorized_keys, because authorized_keys is used to save the public key content that allows users to log on to the SSH client as the current user:

Check whether you can log on to SSH without a password:

Enter "yes" to continue logging on:

Indicates that we have successfully logged on;

Run the following command to exit localhost:

You do not need a password when logging on to localhost again, as shown in:

 

 

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.