1.1 configure Resource requirements 2LinuxUbuntu10. the latest version 10 can be downloaded from the official website for free. You can also apply for free shipit installation from the Ubuntu community. ubuntu. the latest version of the com2Hadoop0.21.0 package can be downloaded from the Apache backup storage www.apache.org → download → image 1.1 to configure resource requirements.
2 Linux Ubuntu 10.10
// The latest version can be downloaded from the official website for free.
// You can also apply for free installation of shipit.ubuntu.com from the Ubuntu community
2 Hadoop 0.21.0 package
// The latest version can be downloaded from the Apache backup storage.
// Www.apache.org → download → Backup Server → hadoop
2 Sun-java6-jdk pack
// Enter:SuDo apt-get install sun-java6-jdk
// The system automatically downloads the package and all dependent packages, and installs the package at the same time.
2 SSH package
// Provides the security protocol for remote logon sessions.
// Enter sudo apt-get install ssh in the terminal
2. Eclipse package
// Download the latest official version: www.eclipse.org/downloads/
1.2 resource configuration process 1.2.1 install Ubuntu 10.10
1) Update the deb package list
$ Sudo apt-get upDate
2) install system updates
$ Sudo apt-get upgrade
1.2.2 install JDK 6
1) Installation
$ Sudo apt-get install sun-java6-jdk // default path at/usr/lib/jvm, the installation requires the TAB key to select OK
2) Configure Java environment variables
$ Sudo gEdIt/etc/environment // Add CLASSPATH and JAVA_HOME to the environment File
CLASSPATH = ".:/usr/lib/jvm/java-6-sun/lib"
JAVA_HOME = "/usr/lib/jvm/java-6-sun"
3) Adjust the VM Sequence
$ Sudo gedit/etc/jvm // Add/usr/lib/jvm/java-6-sun. If the jvm file does not exist, create one by yourself.
1.2.3 Install ssh
1) install open-server
$ Sudo apt-get install open-server
2) create an SSH KEY
$ Ssh-keygen-t rsa-P ""
3) Start the SSH KEY
$Cat$ HOME/. ssh/Id_ Rsa. pub> $ HOME/. ssh/authorized_keys
$ Sudo/etc/init. d/ssh reload
4) Verify ssh Configuration
$ Ssh localhost
-1 verify ssh
1.2.4 install Hadoop
1) install Hadoop
$Cd~ // Select the default folder
$ Sudo tar xvf hadoop-0.21.0.tar.gz //ExtractTo current path
$MvHadoop-0.21.0 hadoop // Rename to hadoop
$ SudoChown-R adminisTrAtor: administrator hadoop // grant administrator permissions
2) Configure HADOOP_HOME or HADOOP_COMMON_HOME
Because the HADOOP_HOME name configured in different versions is different, first check which name is used for different Hadoop versions. EnterCommand:
$ Vim bin/start-DfS. sh
Figure 1-2 view HADOOP_COMMON_HOME
From the file ID, we can see that hadoop of this version uses the name HADOOP_COMMON_HOME. Therefore, you only need to configure the environment variable of this name. First, find the directory installed by Hadoop. Then, edit the/etc/environment file and add a simhei sentence in-3.
$ Sudo vim/etc/environment
-3 configure HADOOP_COMMON_HOME
3) Configure JAVA_HOME (the current path is under HADOOP_OME)
Configure $ HADOOP_HOME/conf/hadoop-env.sh to add the path to the local JAVA_HOME.
$ Sudo vim conf/hadoop-env.sh
-4 configure hadoop-env.sh
| [Content navigation] |
| Page 1: system environment Configuration |
Page 1: Standalone pseudo distribution Configuration |
| Page 1: full distribution Configuration |
Page 1: build Map-re in EclipseDuCe Development Environment |