Changes between Version 14 and Version 15 of NCHCCloudCourse100928/Netbeans


Ignore:
Timestamp:
Mar 16, 2011, 8:02:54 PM (13 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NCHCCloudCourse100928/Netbeans

    v14 v15  
    6666== 步驟四:使用 !KarmaSphere Studio 建立 !WordCount 專案 ==
    6767
    68  * 底下示範 !KarmaSphere Studio 能給初學者判斷 Key-Value Pair 與 InputFormat 的幫助。
     68 * 底下示範 !KarmaSphere Studio 能給初學者判斷 Key-Value Pair 與 !InputFormat 的幫助。
    6969 * 首先,到「檔案(F)」選單,選擇「New Project...」
    7070 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_01.png,width=600)]]
    7171 * 在左方 Categories 選擇「Java」,並在右方 Projects 選擇「Java Application」
    7272 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_02.png,width=600)]]
    73  * 於 Project Name 處,輸入「WordCountTest」,並按下方「完成」按鈕
     73 * 於 Project Name 處,輸入「!WordCountTest」,並按下方「完成」按鈕
    7474 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_03.png,width=600)]]
    7575 * 於左方「程式庫」上,按下滑鼠右鍵,選擇「Add Library ...」
     
    7777 * 依照需要選擇 Hadoop !MapReduce 版本,例如:「Hadoop !MapReduce 0.20」
    7878 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_05.png)]]
    79  * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_06.png,width=600)]]
     79 * 按下「加入程式庫」按鈕後,左方程式庫 會加入許多與 Hadoop 相關的 JAR 函式庫。
     80 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_06.png)]]
     81 * 到「原始碼套件」上,按下滑鼠右鍵,選擇「New」->「Other...」
    8082 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_07.png,width=600)]]
     83 * 於 Project 處輸入「!WordCountTest」,左方 Categories 選擇「Hadoop !MapReduce Components」,右方 File Types 選擇「Hadoop Map-Reduce Job (Stable API)」,並且按下「下一步」按鈕繼續。
    8184 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_08.png,width=600)]]
     85 * 於 Class Name 處輸入「!WordCountJob」,而 package 處選擇「wordcounttest」,最後按下「完成」按鈕。
    8286 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_09.png,width=600)]]
     87 * 在 Netbean 畫面中會出現額外的 Workflow 圖形介面。您可以選擇某個檔案當 Input File,例如:hadoop/conf/core-site.xml 這個 XML 檔案。
    8388 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_10.png,width=600)]]
     89 * 接著,請嘗試修改 !InputFormat 的 Class Name 並觀察底下 Key-Value 的差異,例如:!TextInputFormat 與 !KeyValueInputFormat 有何不同。
    8490 * [[Image(NCHCCloudCourse100928/Netbeans:KarmaSphere_WordCount_11.png,width=600)]]
    8591