Jul 032012
When trying to use Apache Pig in local mode to connect to a stand-alone HBase using HBaseStorage, I kept getting errors like this:
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. Not a host:port pair: ?42548@endive.local10.1.10.70, 64058,1341349176322
The unrecognized host:port pair corresponds to a happy sign-on message from the HBase log:
INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: The identifier of this process is 42548@endive.local
The problem is a version mismatch: HBase apparently changed the format of this data in 0.92. As of Pig 0.10.0, the solution is downgrade HBase to 0.90.6.
Can you tell me how to downgrade HBase to 0.90.6? thanks
Interesting. What happens if you instead ensure Pig is using the 0.92 HBase jar? You should be able to do this by simply putting it on $PIG_CLASSPATH, I think; or you might have to use pig-core instead of pig-withoutdependencies, and provide all the guava, hbase, etc jars yourself.