Changes between Version 2 and Version 3 of waue/2010/0204-06


Ignore:
Timestamp:
Feb 4, 2010, 5:24:06 PM (14 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2010/0204-06

    v2 v3  
    33 == 說明:  ==
    44        此程式碼將輸入路徑的檔案內的字串取出做字數統計,再將結果塞回HTable內
     5 == 執行方法 ==
     6
     7[raw-attachment:wiki:NCHCCloudCourse100204:tsmcHBase_100203.jar 測試檔案 tsmcHBase_100203.jar]
     8
     9{{{
     10$ /opt/hadoop/bin/hadoop jar tsmcHBase_100203.jar tsmc.CountToHBaseReducer
     11}}}
    512
    613
     
    916$ hbase shell
    1017        > scan 'wordcount'
    11         ROW             COLUMN+CELL
    12         am              column=content:count, timestamp=1264406245488, value=1
     18        ROW     COLUMN+CELL
     19        am      column=content:count, timestamp=1264406245488, value=1
    1320        chen    column=content:count, timestamp=1264406245488, value=1
    14         hi,             column=content:count, timestamp=1264406245488, value=2
     21        hi,     column=content:count, timestamp=1264406245488, value=2
    1522  ......(略)
    1623}}}
     
    2229
    23302.      運算完後,程式將執行結果放在hbase的wordcount資料表內
     31
    2432 == 參考: ==
    2533
     
    28362.hbase 運作 mapreduce 程式的方法參考於:http://wiki.apache.org/hadoop/Hbase/MapReduce
    2937
     38 == 程式碼 ==
    3039
    3140{{{