Changes between Version 2 and Version 3 of waue/2010/0204-07
- Timestamp:
- Feb 4, 2010, 5:27:31 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
waue/2010/0204-07
v2 v3 5 5 == 運算方法: == 6 6 將此程式運作在hadoop 0.20 平台上,用(參考2)的方法加入hbase參數後,將此程式碼打包成XX.jar 7 == 執行: == 7 == 執行: == 8 9 [raw-attachment:wiki:NCHCCloudCourse100204:tsmcHBase_100203.jar 測試檔案 tsmcHBase_100203.jar] 10 8 11 {{{ 9 hadoop jar XX.jar LoadHBaseMapper <hdfs_output>12 bin/hadoop jar tsmcHBase_100203.jar LoadHBaseMapper <hdfs_output> 10 13 }}} 11 14 == 結果: == … … 119 122 120 123 // // 設定哪張hbase的table為輸入 121 conf.set(TableInputFormat.INPUT_TABLE, tablename);// 用此方法會遇到 122 // java.lang.IllegalArgumentException: 123 // string cannot be 124 // null 124 conf.set(TableInputFormat.INPUT_TABLE, tablename); 125 125 Scan myScan = new Scan("".getBytes(), "12".getBytes()); 126 126 myScan.addColumn("Detail:Name".getBytes());