Hadoop environment Setup (Linux standalone edition)

Source: Internet
Author: User

I. Create Hadoop user portfolio under Ubuntu Hadoop user

1. Create a Hadoop user group      addgroup HADOOP2, create a Hadoop user      adduser-ingroup Hadoop hadoop3, Add permissions      VIM/ETC/SUDOERS4 to Hadoop users, switch to Hadoop users      su-hadoop two, SSH installation and setup 1, install ssh  & nbsp   sudo apt-get Install Openssh-server2, start service      SUDO/ETC/INIT.D/SSH Start3, view startup      ps-e | grep ssh4, set password-free login, generate private key with public key      SSH-KEYGEN-T rsa-p ""       This will generate two files under/home/hadoop/.ssh: ID _rsa and Id_rsa.pub, the former is the private key, the latter is the public key.       Appends the public key to Authorized_keys, which saves all public key content that allows the user to log on to the SSH client as the current user.      cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys5, ssh login      SSH Localhost6, Sign out      exit install Java Environment 1, install java     sudo apt-get install OPENJDK-7-JDK2, view Java version   & nbsp  java-version3, view Java installation path      update-alternative--config Javaiv. installation of hadoop2.7.11. Download hadoop2.7.1.tar.gz2, Decompression:sudo tar xzf hadoop-2.7.1.tar.gz     3, copy to: sudo mv hadoop-2.7.1 /usr/local/hadoop     4, permissions settings: sudo chmod 774/usr/local/hadoop     5, config. bashrc file          # HADOOP VARIABLES start          Export java_home=/usr/lib/jvm/java-7-openjdk-amd64          export hadoop_install=/usr/local/hadoop          Export path= $PATH: $ hadoop_install/bin          export path= $PATH: $HADOOP _install/sbin        & nbsp Export hadoop_mapred_home= $HADOOP _install          Export hadoop_common_home= $HADOOP _install           export hadoop_hdfs_home= $HADOOP _install          Export Yarn_h Ome= $HADOOP _install          Export hadoop_common_lib_native_dir= $HADOOP _install/lib/native           Export HADOOP_OPts= "-djava.library.path= $HADOOP _install/lib"               #HADOOP VARIABLES END      6, environment variable effective           source ~/.bashrc    7, edit/usr/local/hadoop /etc/hadoop/hadoop-env.sh      Five, validation test      1,/usr/local/hadoop path Create input folder     2, copy README.txt to input     3, execute wordcount         bin/hadoop jar Share/ Hadoop/mapreduce/sources/hadoop-mapreduce-examples-2.4.0-sources.jar Org.apache.hadoop.examples.WordCount Input  output      VI. results presentation    

Hadoop environment Setup (Linux standalone edition)

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.