Changes between Initial Version and Version 1 of waue/2009/0729


Ignore:
Timestamp:
Jul 29, 2009, 6:06:05 PM (15 years ago)
Author:
waue
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • waue/2009/0729

    v1 v1  
     1 * 問題1: 如何讓run裡宣告的物件,map可使用,reduce也可以呼叫到
     2
     3{{{
     4public class ICAS extends Configured implements Tool {
     5
     6        HBaseConfiguration hbase_conf;
     7        HBaseAdmin hbase_admin;
     8
     9        public ICAS() throws IOException {
     10                hbase_conf = new HBaseConfiguration();
     11                hbase_admin = new HBaseAdmin(hbase_conf);
     12
     13        }
     14
     15        public static class ICAS_M extends MapReduceBase implements
     16                        Mapper<LongWritable, Text, Text, Text> {
     17        //無法用hbase_admin, hbase_conf
     18        }
     19
     20        public static class ICAS_R extends TableReduce<Text, Text> {
     21        //無法用hbase_admin, hbase_conf
     22        }
     23
     24        public static void main(String[] args) throws Exception {
     25        //可以用hbase_admin, hbase_conf
     26        }
     27}}}
     28
     29 * 問題二、如何不覆蓋原本hbase內的資料,而是累加進去
     30   * 要先從原本的資料庫把資料撈出來,再整合後放進去
     31
     32 * 問題三、如何讓reduce 顯示進度
     33
     34 * 問題四、如何讓<key,value>後的value 在進行一次<key,value>
     35現在:
     36 || key= dest ip || value= infor: sip||
     37 || host M || host1; host2; host1||
     38期望值:(也就是多出來的host1要被濾掉)
     39 || key= dest ip || value= infor: sip||
     40 || host M || host1; host2||
     41
     42
     43
     44
     45