Changes between Version 4 and Version 5 of NCHCCloudCourse100802/Lab5
- Timestamp:
- Aug 9, 2010, 3:37:18 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100802/Lab5
v4 v5 28 28 * 在 "主機一" (有操作過 實作一 的電腦)上操作[[BR]]On "node1", please remove the folder of /opt/hadoop and /var/hadoop created in Lab1 29 29 {{{ 30 ~$ cd ~31 ~$ /opt/hadoop/bin/stop-all.sh32 ~$ rm -rf /var/hadoop33 ~$ sudo rm -rf /opt/hadoop34 ~$ rm -rf ~/.ssh30 node1:~$ cd ~ 31 node1:~$ /opt/hadoop/bin/stop-all.sh 32 node1:~$ rm -rf /var/hadoop 33 node1:~$ sudo rm -rf /opt/hadoop 34 node1:~$ rm -rf ~/.ssh 35 35 }}} 36 36 … … 40 40 * 請注意我們實驗環境已經把 /etc/ssh/ssh_config裡的StrictHostKeyChecking改成no,下面的指令可以檢查,如果你的設定不同的話,請修改此檔會比較順。[[BR]]Please check your /etc/ssh/ssh_config configurations. It should had been change the setting of "StrictHostKeyChecking" to "no". If not, please modified it by editor. 41 41 {{{ 42 $ cat /etc/ssh/ssh_config |grep StrictHostKeyChecking42 node1:~$ cat /etc/ssh/ssh_config |grep StrictHostKeyChecking 43 43 StrictHostKeyChecking no 44 44 }}} … … 46 46 * 在"主機一" 上操作,並將 key 產生並複製到其他節點上[[br]]On "node1", generate SSH key and copy these keys to "node2". 47 47 {{{ 48 ~$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""49 ~$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys50 ~$ scp -r ~/.ssh 主機二(node2):~/48 node1:~$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P "" 49 node1:~$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys 50 node1:~$ scp -r ~/.ssh 主機二(node2):~/ 51 51 }}} 52 52 * 測試看看是否登入免密碼[[BR]]To make sure that you've configure it correct, you could try following commands. 53 53 {{{ 54 ~$ ssh 主機二(node2) 55 ~$ ssh 主機一(node1) 56 ~$ exit 57 ~$ exit 54 node1:~$ ssh 主機二(node2) 55 node2:~$ ssh 主機一(node1) 56 node1:~$ exit 57 node2:~$ exit 58 node1:~$ 58 59 ~$ 59 60 }}} … … 64 65 * 為兩台電腦安裝 Java[[BR]]Install Java Runtime for both computer. 65 66 {{{ 66 ~$ sudo apt-get purge java-gcj-compat 67 ~$ sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre 68 ~$ ssh 主機二(node2) 69 ~$ export LC_ALL=C 70 ~$ sudo apt-get update 71 ~$ sudo apt-get purge java-gcj-compat 72 ~$ sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre 73 ~$ exit 67 node1:~$ sudo apt-get purge java-gcj-compat 68 node1:~$ sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre 69 node1:~$ ssh 主機二(node2) 70 node2:~$ export LC_ALL=C 71 node2:~$ sudo apt-get update 72 node2:~$ sudo apt-get purge java-gcj-compat 73 node2:~$ sudo apt-get install sun-java6-bin sun-java6-jdk sun-java6-jre 74 node2:~$ exit 75 node1:~$ 74 76 }}} 75 77 … … 80 82 81 83 {{{ 82 ~$ cd /opt83 /opt$ sudo wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz84 /opt$ sudo tar zxvf hadoop-0.20.2.tar.gz85 /opt$ sudo mv hadoop-0.20.2/ hadoop86 /opt$ sudo chown -R hadooper:hadooper hadoop87 /opt$ sudo mkdir /var/hadoop88 /opt$ sudo chown -R hadooper:hadooper /var/hadoop84 node1:~$ cd /opt 85 node1:/opt$ sudo wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz 86 node1:/opt$ sudo tar zxvf hadoop-0.20.2.tar.gz 87 node1:/opt$ sudo mv hadoop-0.20.2/ hadoop 88 node1:/opt$ sudo chown -R hadooper:hadooper hadoop 89 node1:/opt$ sudo mkdir /var/hadoop 90 node1:/opt$ sudo chown -R hadooper:hadooper /var/hadoop 89 91 }}} 90 92