title: Error in Hbase and pig. ERROR 2998: Unhandled internal error
body: <p>I am running the following command on my machine: <code>pig -x local -f Hbase/load_hbase.pig</code></p>
  
  <p>Here's the Pig Stack Trace I'm getting, hopefully for the better understand my problem.</p>
  
  <pre><code>ERROR 2998: Unhandled internal error. org/apache/hadoop/hbase/filter/WritableByteArrayComparable
  
  java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/filter/WritableByteArrayComparable
      at java.lang.Class.forName0(Native Method)
      at java.lang.Class.forName(Class.java:274)
      at org.apache.pig.impl.PigContext.resolveClassName(PigContext.java:635)
      at org.apache.pig.parser.LogicalPlanBuilder.validateFuncSpec(LogicalPlanBuilder.java:1296)
      at org.apache.pig.parser.LogicalPlanBuilder.buildFuncSpec(LogicalPlanBuilder.java:1284)
      at org.apache.pig.parser.LogicalPlanGenerator.func_clause(LogicalPlanGenerator.java:5158)
      at org.apache.pig.parser.LogicalPlanGenerator.store_clause(LogicalPlanGenerator.java:7756)
      at org.apache.pig.parser.LogicalPlanGenerator.op_clause(LogicalPlanGenerator.java:1669)
      at org.apache.pig.parser.LogicalPlanGenerator.general_statement(LogicalPlanGenerator.java:1102)
      at org.apache.pig.parser.LogicalPlanGenerator.statement(LogicalPlanGenerator.java:560)
      at org.apache.pig.parser.LogicalPlanGenerator.query(LogicalPlanGenerator.java:421)
      at org.apache.pig.parser.QueryParserDriver.parse(QueryParserDriver.java:188)
      at org.apache.pig.PigServer$Graph.parseQuery(PigServer.java:1678)
      at org.apache.pig.PigServer$Graph.access$000(PigServer.java:1411)
      at org.apache.pig.PigServer.parseAndBuild(PigServer.java:344)
      at org.apache.pig.PigServer.executeBatch(PigServer.java:369)
      at org.apache.pig.PigServer.executeBatch(PigServer.java:355)
      at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:140)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:202)
      at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:173)
      at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84)
      at org.apache.pig.Main.run(Main.java:478)
      at org.apache.pig.Main.main(Main.java:156)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
  Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.filter.WritableByteArrayComparable
      at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
      at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
      ... 28 more
  </code></pre>
  
  <p>Here is the code I'm running</p>
  
  <pre><code>raw_data = LOAD '/data/QCLCD201211/201211hourly.txt' USING PigStorage(',');
  weather_data = FOREACH raw_data GENERATE $1, $10;
  ranked_data = RANK weather_data;
  final_data = FILTER ranked_data BY $0 IS NOT NULL;
  STORE final_data INTO 'hbase://weather' 
           USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('info:date info:temp');
  </code></pre>
  
  <p>As you can see, I think the error code is not in the pig but something else that I do not understand.</p>