Linux (CentOS) pseudo-distribution mode installation Hadoop__linux

Source: Internet
Author: User
Tags xsl
First, download
Download Address: http://apache.etoak.com/hadoop/common/
Open will find different versions, I choose here is: hadoop-1.0.3.tar.gz
Download location to:/data/software

Second, the installation
Using the command tar to decompress the installation, the results are as follows:

Shell code [root@sc-026 ~]# cd/data/software/[root@sc-026 software]# tar xvf hadoop-1.0.3.tar.gz

If the JAVA_HOME environment variable already points to a Java installation, you do not need to configure it.
Shell code [root@sc-026 software]# echo $JAVA _home/usr/java/jdk1.7.0_01

Otherwise, edit ... /conf/hadoop-env.sh file to set java_home variable
Shell code [root@sc-026 software]# cd hadoop-1.0.3/conf [root@sc-026 conf]# vim hadoop-env.sh
This is edited in this computer as follows:
Shell Code Export JAVA_HOME=/USR/JAVA/JDK1.7.0_01 Export hadoop_home=//data/software/hadoop-1.0.3 export path= $PATH: $HA Doop_home/bin
: Wq save, exit.

Third, the configuration
The various components of Hadoop can be configured with XML files.
Core-site.xml: Used to configure the properties of the common component;
Hdfs-site.xml: Used to configure HDFS properties;
Mapred-site.xml: Used to configure mapreduce properties.
These configuration files are in the following path:
Shell Code   [root@sc-026 conf]# ls   capacity-scheduler.xml  hadoop-env.sh~               mapred-site.xml    Configuration.xsl       hadoop-metrics2.properties  masters    Core-site.xml           hadoop-policy.xml            slaves   core-site.xml~           hdfs-site.xml                ssl-client.xml.example   fair-scheduler.xml       log4j.properties             ssl-server.xml.example   hadoop-env.sh            mapred-queue-acls.xml       taskcontroller.cfg  

Open 3 files in turn through Vim, configured as follows:

XML code [root@sc-026 conf]# vim core-site.xml <?xml version= "1.0"?> <?xml-stylesheet type= "text/xsl" href= "con Figuration.xsl "?> <!--put the site-specific property overrides into this file. -->
<configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost</value> </property> </configuration>

XML code [root@sc-026 conf]# vim hdfs-site.xml <?xml version= "1.0"?> <?xml-stylesheet type= "text/xsl" href= "Co Nfiguration.xsl "?>
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.