[Hadoop learning] -- (2) Installing and starting hadoop

Source: Internet
Author: User
9 install hadoop
<1> Installation
Tar-zvxf hadoop-1.1.2.tar.gz
Music hadoop-1.1.2/usr/lib/hadoop
<2> Environment Variables
Run gedit/etc/profile to add and modify it:
Export java_home =/usr/lib/JVM
Export hadoop_home =/usr/lib/hadoop/
Export Path =.: $ java_home/bin: $ hadoop_home/bin: $ path
Source/etc/profile
10 configure hadoop
<1>/usr/lib/hadoop/conf # gedit hadoop-env.sh
Change row 9th:
Export java_home =/usr/lib/JVM
<2>/usr/lib/hadoop/conf # gedit core-site.xml
<Configuration>
<Property>
<Name> fs. Default. Name </Name>
<Value> HDFS: // hadoop: 9000 </value>
<Description> hadoop </description>
</Property>
<Property>
<Name> hadoop. TEM. dir </Name>
<Value>/usr/lib/hadoop/temp </value>
</Property>
</Configuration>
<3>/usr/lib/hadoop/conf # gedit hdfs-site.xml
<Configuration>
<Property>
<Name> DFS. Replication </Name>
<Value> 1 </value>
</Property>
<Property>
<Name> DFS, permissions </Name>
<Value> false </value>
</Property>
</Configuration>
<4>/usr/lib/hadoop/conf # gedit mapred-site.xml
<Configuration>
<Property>
<Name> mapred. Job. Tracker </Name>
<Value> hadoop </value>
</Property>
</Configuration>
<5> Format HDFS
Run: hadoop namenode-format
<6> Start hadoop
/Usr/lib # start-all.sh output the following message:
Warning: $ hadoop_home is deprecated.


Starting namenode, logging to/usr/lib/hadoop/libexec/../logs/hadoop-root-namenode-hadoop.out
Localhost: Starting datanode, logging to/usr/lib/hadoop/libexec/../logs/hadoop-root-datanode-hadoop.out
Localhost: Starting secondarynamenode, logging to/usr/lib/hadoop/libexec/.../logs/hadoop-root-secondarynamenode-hadoop.out
Starting jobtracker, logging to/usr/lib/hadoop/libexec/../logs/hadoop-root-jobtracker-hadoop.out
Localhost: Starting tasktracker, logging to/usr/lib/hadoop/libexec/../logs/hadoop-root-tasktracker-hadoop.out
<7> test URL
Http: // localhost: 50030/-hadoop Management Interface
Http: // localhost: 50060/-hadoop task tracker status
Http: // localhost: 50070/-hadoop DFS status
Testing Process
JPS has five processes in addition to JPS
<8> support windows browser testing
Modify the c: \ windows \ system32 \ drivers \ etc \ hosts file and add
192.168.80.100 hadoop

[Hadoop learning] -- (2) Installing and starting 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.