Ubuntu_Hadoop deployment notes

Source: Internet
Author: User
Standalone mode deployment I. Jdk installation command: sudoapt-getinstallopenjdk-6-jdk Directory:/usr/lib/jvm/java-6-openjdk configuration environment variable: sudogedit/etc/environment Add the following two lines in it: CLASSPATH =. /:/usr/lib/jvm/java-6-openjdk/libJAVA_HOME =/usr/lib/jvm/java-

Standalone deployment

I. Jdk Installation
Command: sudo apt-get install openjdk-6-jdk
Directory:/usr/lib/jvm/java-6-openjdk
Configure environment variables:
Sudo gedit/etc/environment
Add the following two lines:
CLASSPATH =./:/usr/lib/jvm/java-6-openjdk/lib
JAVA_HOME =/usr/lib/jvm/java-6-openjdk
PATH Add:/usr/lib/jvm/java-6-openjdk

Ii. New Hadoop users
Command: sudo addgroup hadoop
Sudo adduser -- ingroup hadoop
Sudo gedit etc/sudoers
Add Configuration:
After root ALL = (ALL) ALL, hadoop ALL = (ALL) ALL enables hadoop users to have root permissions.

Iii. ssh Configuration
Log on with a hadoop account.
Install openssh-server: sudo apt-get install openssh-server
Create an ssh key: ssh-keygen-t rsa-P ""
Enable ssh key: cat $ HOME/. ssh/id_rsa.pub >>$ HOME/. ssh/authorized_keys
Sudo/etc/init. d/ssh reload
Verify SSH configuration: ssh localhost

4. Install hadoop and change user ownership
The Hadoop version we use is the latest Hadoop-0.20.2, which can be downloaded from the official Apache Foundation Homepage

Bytes

A folder for the hadoop-0.20.2.
Installation Directory:/usr/local/hadoop
Change ownership: chown-R hadoop: hadoop

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.