1: Configure static IP Address
Restart NIC command: Service network restart authentication: ifconfig 2: Modify host Name2.1. Modify the host name command in the current session: hostname Hadoop2.2. Modify the host name in the configuration file: Vi/etc/sysconfig/network
Verify: Check host name after restarting machine3:hostname with IP bindingscommand:Vi/etc/hosts add a line of content: 192.168.147.100 Hadoop authentication: Ping Hadoop 4: Shutdown Firewall command: Service iptables stop authentication: Service iptables STATUS5: Turn off auto-run command for firewall: chkconfig iptables off authentication: chkconfig--list | grep iptables 6:SSH configuration specific steps see SSH No password Authentication login implementation 7: Install JDK7.1. Execute command chmod u+xJdk-6u24-linux-i586.bin, giving Execute permission7.2, execute the order.Jdk-6u24-linux-i586.bin Decompression7.3. Execution of ordersMV Jdk1.6.0_24 JDK re-named7.4, execute the command vi/etc/profile add two lines of content Export JAVA_HOME=/USR/LOCAL/JDK
Export path=.: $JAVA _home/bin: $PATH7.5, execute the command source/etc/profile make the configuration take effect immediatelyvalidation: Execute command java-version 8: Install Hadoop (under Hadoop users)8.1, execute the command TAR-ZXVF hadoop-1.1.2.tar.gz decompression8.2. Execute command MV hadoop-1.1.2 Hadoop rename
8.3. Execute command sudo vi/etc/profile configure environment variables
Export Hadoop_home=/home/hadoop/app/hadoop
Export path=.: $HADOOP _home: $JAVA _home/bin: $PATH
Execute command source/etc/profile make the configuration take effect immediately8.4. Modify 4 configuration files: 1, modify $hadoop_home/conf/hadoop-env.sh increase JAVA_HOME=/USR/LOCAL/JDK
2, modify $hadoop_home/conf/core-site.xml Add content:
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://hadoop:9000</value>
<description>change your own hostname</description>
</property>
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/tmp</value>
</property>
</configuration>
3, modify $hadoop_home/conf/hdfs-site.xml Add content:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permissions</name>
<value>false</value>
</property>
</configuration>
4, modify $hadoop_home/conf/mapred-site.xml Add content:
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>hadoop:9001</value>
<description>change your own hostname</description>
</property>
</configuration>
9:hadoop Format File System9.1. Execute command: Hadoop namenode-format format9.2, execute the command: start-all.sh start
9.3. Execute command: JPS Verify 5 Java processes27036 NameNode 27158 DataNode 27519 tasktracker 27283 secondarynamenode 27360 Jobtracker9.4. Browser View http://hadoop:50070/dfshealth.jsp http://hadoop:50030/jobtracker.jsp9.5. Remote View modify remote client Hosts file C:\Windows\System32\drivers\etc\hosts Add Content 192.168.147.100 Hadoop
HADOOP1 pseudo-Distributed installation experiment