Changes between Version 4 and Version 5 of NCHCCloudCourse100802/Lab5


Ignore:
Timestamp:
Aug 9, 2010, 3:37:18 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100802/Lab5

    v4 v5  
    2828 * 在 "主機一"  (有操作過 實作一 的電腦)上操作[[BR]]On "node1", please remove the folder of /opt/hadoop and /var/hadoop created in Lab1
    2929{{{
    30 ~$ cd ~
    31 ~$ /opt/hadoop/bin/stop-all.sh
    32 ~$ rm -rf /var/hadoop
    33 ~$ sudo rm -rf /opt/hadoop
    34 ~$ rm -rf ~/.ssh
     30node1:~$ cd ~
     31node1:~$ /opt/hadoop/bin/stop-all.sh
     32node1:~$ rm -rf /var/hadoop
     33node1:~$ sudo rm -rf /opt/hadoop
     34node1:~$ rm -rf ~/.ssh
    3535}}}
    3636
     
    4040 * 請注意我們實驗環境已經把 /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.
    4141{{{
    42 $ cat /etc/ssh/ssh_config |grep StrictHostKeyChecking
     42node1:~$ cat /etc/ssh/ssh_config |grep StrictHostKeyChecking
    4343StrictHostKeyChecking no
    4444}}}
     
    4646 * 在"主機一" 上操作,並將 key 產生並複製到其他節點上[[br]]On "node1", generate SSH key and copy these keys to "node2".
    4747{{{
    48 ~$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""
    49 ~$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
    50 ~$ scp -r ~/.ssh 主機二(node2):~/
     48node1:~$ ssh-keygen -t rsa -f ~/.ssh/id_rsa -P ""
     49node1:~$ cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
     50node1:~$ scp -r ~/.ssh 主機二(node2):~/
    5151}}}
    5252 * 測試看看是否登入免密碼[[BR]]To make sure that you've configure it correct, you could try following commands.
    5353{{{
    54 ~$ ssh 主機二(node2)
    55 ~$ ssh 主機一(node1)
    56 ~$ exit
    57 ~$ exit
     54node1:~$ ssh 主機二(node2)
     55node2:~$ ssh 主機一(node1)
     56node1:~$ exit
     57node2:~$ exit
     58node1:~$
    5859~$
    5960}}}
     
    6465 * 為兩台電腦安裝 Java[[BR]]Install Java Runtime for both computer.
    6566{{{
    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
     67node1:~$ sudo apt-get purge java-gcj-compat
     68node1:~$ sudo apt-get install sun-java6-bin  sun-java6-jdk sun-java6-jre
     69node1:~$ ssh 主機二(node2)
     70node2:~$ export LC_ALL=C
     71node2:~$ sudo apt-get update
     72node2:~$ sudo apt-get purge java-gcj-compat
     73node2:~$ sudo apt-get install sun-java6-bin  sun-java6-jdk sun-java6-jre
     74node2:~$ exit
     75node1:~$
    7476}}}
    7577
     
    8082
    8183{{{
    82 ~$ cd /opt
    83 /opt$ sudo wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz
    84 /opt$ sudo tar zxvf hadoop-0.20.2.tar.gz
    85 /opt$ sudo mv hadoop-0.20.2/ hadoop
    86 /opt$ sudo chown -R hadooper:hadooper hadoop
    87 /opt$ sudo mkdir /var/hadoop
    88 /opt$ sudo chown -R hadooper:hadooper /var/hadoop
     84node1:~$ cd /opt
     85node1:/opt$ sudo wget http://ftp.twaren.net/Unix/Web/apache/hadoop/core/hadoop-0.20.2/hadoop-0.20.2.tar.gz
     86node1:/opt$ sudo tar zxvf hadoop-0.20.2.tar.gz
     87node1:/opt$ sudo mv hadoop-0.20.2/ hadoop
     88node1:/opt$ sudo chown -R hadooper:hadooper hadoop
     89node1:/opt$ sudo mkdir /var/hadoop
     90node1:/opt$ sudo chown -R hadooper:hadooper /var/hadoop
    8991}}}
    9092