jerry@ubuntu:~$ sudo tar zxf hadoop-1.2.1.tar.gz -C /opt/
[sudo] password for jerry:
jerry@ubuntu:~$ cd /opt/hadoop-1.2.1/
jerry@ubuntu:/opt/hadoop-1.2.1$ ls
bin hadoop-ant-1.2.1.jar ivy sbin
build.xml hadoop-client-1.2.1.jar ivy.xml share
c++ hadoop-core-1.2.1.jar lib src
CHANGES.txt hadoop-examples-1.2.1.jar libexec webapps
conf hadoop-minicluster-1.2.1.jar LICENSE.txt
contrib hadoop-test-1.2.1.jar NOTICE.txt
docs hadoop-tools-1.2.1.jar README.txt
jerry@ubuntu:/opt/hadoop-1.2.1$ cd conf/
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ ls
capacity-scheduler.xml hadoop-policy.xml slaves
configuration.xsl hdfs-site.xml ssl-client.xml.example
core-site.xml log4j.properties ssl-server.xml.example
fair-scheduler.xml mapred-queue-acls.xml taskcontroller.cfg
hadoop-env.sh mapred-site.xml task-log4j.properties
hadoop-metrics2.properties masters
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ vim hadoop-env.sh
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ sudo vim hadoop-env.sh
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ tail -n 1 hadoop-env.sh
export JAVA_HOME=/usr/lib/jvm/java
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ sudo vim core-site.xml
jerry@ubuntu:/opt/hadoop-1.2.1/conf$ cat core-site.xml
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="https://www.linuxidc.com/configuration.xsl"?>
<!-- Put site-specific property overrides in this file. -->