Build a Hadoop environment on Ubuntu (with Instance attached)

Source: Internet
Author: User
We have some knowledge about Hadoop, especially the Analysis of Some of MapReduce source code yesterday, and we know how MapReduce works, I really want to install Hadoop On My Own (in fact, it's my own hand ...)? Today, we will install Hadoop without analyzing the source code (standalone cluster mode ). All of the following operations are completed in Ubuntu11.04. Before installation, add a user named hadoop to the system for Hadoop testing.

We have some knowledge about Hadoop, especially the Analysis of Some of MapReduce source code yesterday, and we know how MapReduce works, I really want to install Hadoop On My Own (in fact, it's my own hand ...)? Today, we will install Hadoop without analyzing the source code (standalone cluster mode ). All of the following operations are completed in Ubuntu 11.04.

Before installation, add a user named hadoop to the system for Hadoop testing.

~ $ Sudo addgroup hadoop

~ $ Sudo adduser -- ingroup hadoop

Now we only added a user hadoop, which does not have administrator permissions. Therefore, we need to add the user hadoop to the Administrator group:

~ $ Sudo usermod-aG admin hadoop

Now you can start to install :-)

1. Install ssh

Because Hadoop uses ssh for communication, as a secure communication protocol, a password is required for use, so we need to set it to password-free login (unless your hands are really itchy, every time you like to enter a password, one or two machines are fine. How about dozens or even hundreds of machines? Do you have no password to worry about security issues? Check openssh by yourself. Remember to understand the encryption algorithm in it .)

~ $ Sudo apt-get install openssh-server

Generate the private key and public key:

Hadoop@www.linuxidc.com :~ $ Ssh-keygen-t rsa-P ""

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.