Ubuntu12.04 install Hadoop

Source: Internet
Author: User
Tags addgroup openstack swift
Install Hadoop in Ubuntu12.04. Read more: Install and deploy Openstackhttp: // container on Ubuntu12.10.

Install Hadoop in Ubuntu 12.04.

Related reading:

Install and deploy Openstack http://www.linuxidc.com/Linux/2013-08/88184.htm on Ubuntu 12.10

Ubuntu 12.04 OpenStack Swift single-node deployment manual http://www.linuxidc.com/Linux/2013-08/88182.htm

Installing the Swift component of OpenStack on Ubuntu-installing openstack object storage http://www.linuxidc.com/Linux/2013-08/88180.htm

OpenStack Hands on lab series http://www.linuxidc.com/Linux/2013-08/88170.htm

1. Create a hadoop user group and user a. Create a hadoop User Group

Sudo addgroup hadoop

sudo addgroup hadoop

B. Create a hadoop user

Sudo adduser-ingroup hadoop

sudo adduser –ingroup hadoop hadoop

 

C. Edit the/etc/sudoers file and add permissions to hadoop users.

Sudo vim/etc/sudoers

sudo vim /etc/sudoers

Grant the same root permission to hadoop users

Hadoop ALL = (ALL: ALL) ALL

hadoop ALL=(ALL:ALL) ALL

Note: The/etc/sudoers file may be a readonly file. After modification, use ": wq !" Save

2. Install JDK

JDK installation tutorials have a lot of online materials, so they are omitted.

Note: Do not install OpenJDK. Download JDK from the official Oracle website (Oracle JDK cannot be installed using apt-get install)

3. Install the ssh service

Sudo apt-get install openssh-server

sudo apt-get install openssh-server

4. Set ssh password-less Login

Run the su-command to switch to the hadoop user.

Su-hadoop

su – hadoop

Two ssh-generated keys are available: rsa and dsa. The rsa method is used by default.

A. Create an ssh-key (using rsa)

Ssh-keygen-t rsa-P ""

ssh-keygen -t rsa -P ""

B. Enter ~ In the/. ssh/directory, append id_rsa.pub to the authorized_keys authorization file.
  1. Cd ~ /. Ssh
  2. Cat id_rsa.pub> authorized_keys
cd ~/.sshcat id_rsa.pub >> authorized_keys

C. log on to localhost without a password

Ssh localhost

ssh localhost

 

D. Exit the ssh connection.
  1. Exit
exit

 

For more details, see the next page: http://www.linuxidc.com/Linux/2013-08/88187p2.htm

Related Article

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.