Changes between Version 4 and Version 5 of NCHCCloudCourse100802/Lab1


Ignore:
Timestamp:
Aug 4, 2010, 9:53:17 AM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100802/Lab1

    v4 v5  
    88== 前言 Preface ==
    99
    10  * 本課程實作之電腦教室所提供的作業環境是 Ubuntu 9.04 Desktop 桌面的環境。[[BR]]This lab is based on Ubuntu 9.04 Desktop.
    11  * 本頁面的部分指令,是針對不熟悉 Linux 文字編輯器的使用者所設計的'懶人'設定法,您也可以使用習慣使用的文字編輯器(如:vi,nano,joe等)進行修改。[[BR]]The instructions listed here are suitable for users who are not familiar to Linux editor. You could also use other editors, such as vi, nano, joe, etc.
    12  * '''黑底白字的部分為指令或console秀出的畫面''',請自行剪貼提示符號 "$"(代表一般使用者) 或 "#"(代表最高權限 root 管理者) 之後的指令。如:[[BR]]For the command shown in '''white color with black background''', please copy and paste them to '''console'''. Please note that the prompt "$" is for normal user and prompt "#" is for super user. Here is an example:
     10 * 本課程實作之電腦教室所提供的作業環境是 Ubuntu 9.04 Desktop 桌面的環境。 [[BR]] This lab is based on Ubuntu 9.04 Desktop.
     11 * 本頁面的部分指令,是針對不熟悉 Linux 文字編輯器的使用者所設計的'懶人'設定法,您也可以使用習慣使用的文字編輯器(如:vi,nano,joe等)進行修改。 [[BR]] The instructions listed here are suitable for users who are not familiar to Linux editor. You could also use other editors, such as vi, nano, joe, etc.
     12 * '''黑底白字的部分為指令或console秀出的畫面''',請自行剪貼提示符號 "$"(代表一般使用者) 或 "#"(代表最高權限 root 管理者) 之後的指令。如: [[BR]] For the command shown in '''white color with black background''', please copy and paste them to '''console'''. Please note that the prompt "$" is for normal user and prompt "#" is for super user. Here is an example:
    1313{{{
    1414/home/DIR$ Copy_Command From To ...
     
    1616 則複製''' Copy_Command From To ... ''' 這個指令,貼到你的console來執行。(/home/DIR 代表目前所在的目錄路徑)[[BR]]
    1717 Please copy the command ''' Copy_Command From To ... ''' and paste to your console for excution. ( "/home/DIR" stands for ''the working directory'' )
    18  * '''白底黑字的部分為文件內的內容''' ,如[[BR]]For the command shown in '''black color with white background''', please copy and paste them to '''editor''' (such as ''gnome editor'' in Gnome Desktop). Here is an example:
     18 * '''白底黑字的部分為文件內的內容''' ,如 [[BR]] For the command shown in '''black color with white background''', please copy and paste them to '''editor''' (such as ''gnome editor'' in Gnome Desktop). Here is an example:
    1919{{{
    2020#!sh
    2121I am context.
    2222}}}
    23  如果熟悉vi,nano,joe等編輯器可複製此區內容貼到文件內(雖然此頁面的指令都已經簡化過)[[BR]]If you're familiar with editors like vi, nano or joe, please copy and paste them to suitable position of the configuration files ( even commands were simplified in this page)
     23 如果熟悉vi,nano,joe等編輯器可複製此區內容貼到文件內(雖然此頁面的指令都已經簡化過) [[BR]] If you're familiar with editors like vi, nano or joe, please copy and paste them to suitable position of the configuration files ( even commands were simplified in this page)
    2424
    2525 * 登入資訊 Login Information
     
    2828 || 群組 Group || hadooper ||
    2929 || 密碼 Password || ****** ||
    30     * Hadooper 擁有 sudoer 的權限[[BR]]hadooper have the permission of ''sudo'' to execute commands of super user.
     30    * Hadooper 擁有 sudoer 的權限 [[BR]] hadooper have the permission of ''sudo'' to execute commands of super user.
    3131
    3232== Step 1: 設定登入免密碼 ==
    3333== Step 1: Setup SSH key exchange ==
    3434 
    35  * 由於 Hadoop 用 ssh 作機器間的溝通,因此先設定登入機器免密碼的設定,[[BR]]Since the ''start-all.sh'' and ''stop-all.sh'' bash scripts are both based on SSH, you have to setup SSH key exchange for the convenience of executing following steps.
     35 * 由於 Hadoop 用 ssh 作機器間的溝通,因此先設定登入機器免密碼的設定, [[BR]] Since the ''start-all.sh'' and ''stop-all.sh'' bash scripts are both based on SSH, you have to setup SSH key exchange for the convenience of executing following steps.
    3636
    3737{{{
     
    4040}}}
    4141
    42  完成後請登入確認不用輸入密碼,(第一次登入需按enter鍵,第二次就可以直接登入到系統),以免日後輸入密碼key到手軟[[BR]]To make sure that you've configure it correct, you could try following commands. Press Enter for the first time, and it should be directly login for the 2nd time.
     42 完成後請登入確認不用輸入密碼,(第一次登入需按enter鍵,第二次就可以直接登入到系統),以免日後輸入密碼key到手軟 [[BR]] To make sure that you've configure it correct, you could try following commands. Press Enter for the first time, and it should be directly login for the 2nd time.
    4343
    4444{{{
     
    5252== Step 2. Install Java ==
    5353
    54  *  由於 Sun Java Runtime 是執行 Hadoop 必備的工具,因此我們需要安裝 JRE 或 JDK。這裡我們直接安裝 JDK,因為後面寫程式仍舊需要用到 JDK 所提供的編譯器。目前 Ubuntu 9.04 提供的 JDK 套件最新版本為 Sun Java(TM) Development Kit (JDK) 6.06 ,套件名稱為 '''sun-java6-jdk'''。並建議刪除原本的 「 gcj 」 。[[BR]]Since Hadoop is written by Java, Java Runtime Environment are required for execution. We recommand to use Sun Java Development Kit (a.k.a JDK) because we need to compile java source code later. By default Ubuntu 9.04 installed ''gcj'' (java-gcj-compat), but we recommand to remove the package and install Sun Java(TM) Development Kit (JDK) 6.06 ('''sun-java6-jdk''') instead.
     54 *  由於 Sun Java Runtime 是執行 Hadoop 必備的工具,因此我們需要安裝 JRE 或 JDK。這裡我們直接安裝 JDK,因為後面寫程式仍舊需要用到 JDK 所提供的編譯器。目前 Ubuntu 9.04 提供的 JDK 套件最新版本為 Sun Java(TM) Development Kit (JDK) 6.06 ,套件名稱為 '''sun-java6-jdk'''。並建議刪除原本的 「 gcj 」 。 [[BR]] Since Hadoop is written by Java, Java Runtime Environment are required for execution. We recommand to use Sun Java Development Kit (a.k.a JDK) because we need to compile java source code later. By default Ubuntu 9.04 installed ''gcj'' (java-gcj-compat), but we recommand to remove the package and install Sun Java(TM) Development Kit (JDK) 6.06 ('''sun-java6-jdk''') instead.
    5555
    5656{{{
     
    5959}}}
    6060
    61 == Step 3. 下載安裝 Hadoop ==
    62 == Step 3. Download Hadoop Source Package ==
    63 
    64  * 請至國網中心 TWAREN 的鏡射站下載 Hadoop 0.20.2,並解開壓縮檔到 /opt 路徑。
     61== Step 3: 下載安裝 Hadoop ==
     62== Step 3: Download Hadoop Source Package ==
     63
     64 * 請至國網中心 TWAREN 的鏡射站下載 Hadoop 0.20.2,並解開壓縮檔到 /opt 路徑。 [[BR]] Please download Hadoop 0.20.2 source package from NCHC TWAREN mirror site and extract the archive file to /opt directory.
    6565
    6666{{{
     
    7474}}}
    7575 
    76 
    77  == step 4. 設定 hadoop-env.sh ==
    78  
    79  * 進入 hadoop 目錄,做進一步的設定。我們需要修改兩個檔案,第一個是 '''hadoop-env.sh''',需要設定 JAVA_HOME, HADOOP_HOME, HADOOP_CONF_DIR 三個環境變數。
     76== Step 4: 設定 hadoop-env.sh ==
     77== Step 4: Configure hadoop-env.sh ==
     78 
     79 * 進入 hadoop 目錄,做進一步的設定。我們需要修改兩個檔案,第一個是 '''hadoop-env.sh''',需要設定 JAVA_HOME, HADOOP_HOME, HADOOP_CONF_DIR 三個環境變數。 [[BR]] Change directory to hadoop source folder to configure the basic configuration. We will need to modify two configuration files. The first one is '''hadoop-env.sh'''. We will configure three environment variables : '''JAVA_HOME''', '''HADOOP_HOME''', and '''HADOOP_CONF_DIR'''.
    8080
    8181{{{