Hi ,
I am not able to write a store a table in HBASE from a file in HDFS using PIG.
ratings1 = LOAD ‘/user/amold72427519/ml-100k/u.data’
USING PigStorage(’\t’)
AS (userID:int,movieID:int,rating:int,time:int);
STORE ratings1 INTO ‘hbase://userdata1’
USING org.apache.pig.backend.hadoop.hbase.HBaseStorage (
‘info:movieID,info:rating,info:time’);
Getting the below error when I execute the above commands. Can someone help on this.
Pig Stack Trace
ERROR 2998: Unhandled internal error. org/apache/hadoop/hbase/mapreduce/TableInputFormat
java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/mapreduce/TableInputFormat
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:348)