- Open hbase-shell
- Create a table:
- create 'mydata1','mycf'
- Open pig shell
- A = LOAD '/lokesh/hbasetest.txt' USING PigStorage(',') as (strdata:chararray, intdata:long);
- STORE A INTO 'hbase://mydata1' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('mycf:intdata');
- Done!!!!!!
No comments:
Post a Comment