ubuntn14.04 32-bit installation hadoop2.7.2

Source: Internet
Author: User
Tags hdfs dfs

1. Create a user,sudo addgroup Hadoopsudo adduser-ingroup Hadoop HADOOP_LCC2. Add sudo permissions to the newly created usersudo gedit/etc/sudoers--> hadoop_lcc all= (all:all) all3. Install SSHUnder HADOOP_LCC user sudo apt-get install openssh-serverRestart SSH Service Sudo/etc/init.d/ssh restart4. Generate SSH public and private keysSsh-keygen-t rsa-p ""Cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys Automatic login No need to enter the passwordSee[Url](Http://www.cnblogs.com/kinglau/p/3794433.html)5. Install the Java JDK.Download JDK 1.8Content in/USR/LIB/JVM copy jdk1.8Set four export variables in Vim/etc/profile:Export java_home=/usr/lib/jvm/jdk1.8Export JAVA_jre=${java_home}/jreExport classpath=.:${Java_home}/lib:${java_jre}/libExport path=${Java_home}/bin:$PATHSource/etc/profileThen replace the original Java version:sudo update-alternatives--install/usr/bin/java Java/usr/lib/jvm/jdk1.8/bin/java 300sudo update-alternatives--install/usr/bin/javac Javac/usr/lib/jvm/jdk1.8/bin/javac 3006. Installing HadoopThis step is actually relatively simple, install the website said, download the Hadoop installation package, and then unzip. Create input directory, configure, execute commands.Here's what to say:* {Java_home} problem this I'm the source of the/etc/profile only after the effective* I paste Hadoop into the/usr/local/hadoop, all have a write permission questionsudo chmod 777 HadoopIn fact, this is risky, do it first, and then check the folder and permissions to the problem.7. Unable to load the solution of the local lib, the environment variable is as follows:Export java_home=/usr/lib/jvm/jdk1.8Export JAVA_jre=${java_home}/jreExport classpath=.:${Java_home}/lib:${java_jre}/libExport path=${Java_home}/bin:$PATHExport Hadoop_home=/usr/local/hadoopExport path=$PATH:$HADOOP _home/binExport path=$PATH:$HADOOP _home/sbinExport HADOOP_mapred_home= $HADOOP _homeExport HADOOP_common_home= $HADOOP _homeExport HADOOP_hdfs_home= $HADOOP _homeExport YARN_home= $HADOOP_homeExport HADOOP_common_lib_native_dir= $HADOOP _home/lib/nativeExport HADOOP_opts= "-djava.library.path= $HADOOP_home/lib/native "And maybe it's libhadoop.so. This soft link expires and is re-connected.Thanks for this article[Blog](http://blog.csdn.net/xichenguan/article/details/38797331)If none of the above, or your operating system is 32-bit, the current Hadoop package is 64, then congratulations you have to recompile the source of Hadoop. I forgot to compile the guide URL of the source code specifically, this[Url](http://blog.csdn.net/ggz631047367/article/details/42460589) looks similar.Once the installation is complete, you can follow the steps in the official website to run a simple example to see the results. One, the command is JPS, to see the node running status of Hadoop, my view results are as follows:![Alt text](1462193654216.png)Run your own first MapReduce program, refer to[Url](http://blog.csdn.net/segen_jaa/article/details/47817219)。 Basic command order is as follows: * javac-classpath/usr/local/hadoop/share/hadoop/common/hadoop-common-2.7.2.jar:/usr/local/ Hadoop/share/hadoop/mapreduce/hadoop-mapreduce-client-core-2.7.2.jar-d. Wordcount.java * JAR-CVF Wc.jar. * Bin/hdfs dfs-mkdir/user * Bin/hdfs dfs-mkdir/user/hadoop_lcc< Span class= "token lf" >* Bin/hdfs dfs-mkdir/user/hadoop_lcc/ Input* bin/hdfs dfs-put wctest/wcfile.txt/user/hadoop_lcc/input  

ubuntn14.04 32-bit installation hadoop2.7.2

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.