hadoop - pig + hbase + hadoop2 integration -
has had successful experience loading data hbase-0.98.0 pig-0.12.0 on hadoop-2.2.0 in environment of hadoop-2.20+hbase-0.98.0+pig-0.12.0 combination without encountering error:
error 2998: unhandled internal error. org/apache/hadoop/hbase/filter/writablebytearraycomparable
with line of log trace:
java.lang.noclassdeffounderror: org/apache/hadoop/hbase/filter/writablebytearra
i searched web , found handful of problems , solutions of them refer pre-hadoop2 , base-0.94-x not applicable situation. have 5 node hadoop-2.2.0 cluster , 3 node hbase-0.98.0 cluster , client machine installed hadoop-2.2.0, base-0.98.0, pig-0.12.0. each of them functioned fine separately , got hdfs, map reduce, region servers , pig worked fine. complete "loading data base pig" example, have following export:
export pig_classpath=$hadoop_install/etc/hadoop:$hbase_prefix/lib/*.jar :$hbase_prefix/lib/protobuf-java-2.5.0.jar:$hbase_prefix/lib/zookeeper-3.4.5.jar
and when tried run : pig -x local -f loaddata.pig , boom, following error:error 2998: unhandled internal error. org/apache/hadoop/hbase/filter/writablebytearraycomparable (this should 100+ times got dying countless tries figure out working setting). trace log shows:lava.lang.noclassdeffounderror: org/apache/hadoop/hbase/filter/writablebytearraycomparable following pig script:
register /usr/local/hbase/lib/hbase-*.jar; register /usr/local/hbase/lib/hadoop-*.jar; register /usr/local/hbase/lib/protobuf-java-2.5.0.jar; register /usr/local/hbase/lib/zookeeper-3.4.5.jar; raw_data = load '/home/hdadmin/200408hourly.txt' using pigstorage(','); weather_data = foreach raw_data generate $1, $10; ranked_data = rank weather_data; final_data = filter ranked_data $0 not null; store final_data 'hbase://weather' using org.apache.pig.backend.hadoop.hbase.hbasestorage('info:date info:temp');
i have created base table 'weather'. has had successful experience , generous share us?
ant clean jar-withouthadoop -dhadoopversion=23 -dhbaseversion=95
by default builds against hbase 0.94. 94 , 95 options.
Comments
Post a Comment