Changes between Version 3 and Version 4 of NCHCCloudCourse100802/Lab1


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

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100802/Lab1

    v3 v4  
    88== 前言 Preface ==
    99
    10  * 本課程實作之電腦教室所提供的作業環境是 Ubuntu 9.04 Desktop 桌面的環境。
    11  * This lab is based on Ubuntu 9.04 Desktop.
    12  * 本頁面的部分指令,是針對不熟悉 Linux 文字編輯器的使用者所設計的'懶人'設定法,您也可以使用習慣使用的文字編輯器(如:vi,nano,joe等)進行修改。
    13  * 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.
    14  * '''黑底白字的部分為指令或console秀出的畫面''',請自行剪貼提示符號 "$"(代表一般使用者) 或 "#"(代表最高權限 root 管理者) 之後的指令。如:
    15  * 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:
    1613{{{
    1714/home/DIR$ Copy_Command From To ...
     
    1916 則複製''' Copy_Command From To ... ''' 這個指令,貼到你的console來執行。(/home/DIR 代表目前所在的目錄路徑)[[BR]]
    2017 Please copy the command ''' Copy_Command From To ... ''' and paste to your console for excution. ( "/home/DIR" stands for ''the working directory'' )
    21  * '''白底黑字的部分為文件內的內容''' ,如
    22  * 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:
    2319{{{
    2420#!sh
    2521I am context.
    2622}}}
    27  如果熟悉vi,nano,joe等編輯器可複製此區內容貼到文件內(雖然此頁面的指令都已經簡化過)[[BR]]
    28  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)
    2924
    3025 * 登入資訊 Login Information
     
    3328 || 群組 Group || hadooper ||
    3429 || 密碼 Password || ****** ||
    35     * Hadooper 擁有sudoer 的權限 - hadooper have the permission of ''sudo'' to execute commands of super user.
    36 
    37 == step 1. 設定登入免密碼 ==
    38 == step 1. setup SSH key exchange ==
    39  
    40  * 由於 Hadoop 用 ssh 作機器間的溝通,因此先設定登入機器免密碼的設定,
     30    * Hadooper 擁有 sudoer 的權限[[BR]]hadooper have the permission of ''sudo'' to execute commands of super user.
     31
     32== Step 1: 設定登入免密碼 ==
     33== Step 1: Setup SSH key exchange ==
     34 
     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.
    4136
    4237{{{
     
    4540}}}
    4641
    47  完成後請登入確認不用輸入密碼,(第一次登入需按enter鍵,第二次就可以直接登入到系統),以免日後輸入密碼key到手軟
     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.
    4843
    4944{{{
     
    5449}}}
    5550   
    56  == step 2. 安裝java ==
    57  *  由於 Sun Java Runtime 是執行 Hadoop 必備的工具,因此我們需要安裝 JRE 或 JDK。這裡我們直接安裝 JDK,因為後面寫程式仍舊需要用到 JDK 所提供的編譯器。目前 Ubuntu 8.04 提供的 JDK 套件最新版本為 Sun Java(TM) Development Kit (JDK) 6.06 ,套件名稱為 '''sun-java6-jdk'''。並建議刪除原本的 「 gcj 」 。
     51== Step 2. 安裝 Java ==
     52== Step 2. Install Java ==
     53
     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.
    5855
    5956{{{
     
    6259}}}
    6360
    64 
    65  == step 3. 下載安裝Hadoop ==
     61== Step 3. 下載安裝 Hadoop ==
     62== Step 3. Download Hadoop Source Package ==
    6663
    6764 * 請至國網中心 TWAREN 的鏡射站下載 Hadoop 0.20.2,並解開壓縮檔到 /opt 路徑。