{"id":189,"date":"2012-07-03T15:43:02","date_gmt":"2012-07-03T22:43:02","guid":{"rendered":"http:\/\/www.lorrin.org\/blog\/?p=189"},"modified":"2012-07-03T15:43:02","modified_gmt":"2012-07-03T22:43:02","slug":"apache-pig-not-a-hostport-pair-errors-using-hbase","status":"publish","type":"post","link":"https:\/\/www.lorrin.org\/blog\/2012\/07\/03\/apache-pig-not-a-hostport-pair-errors-using-hbase\/","title":{"rendered":"Apache Pig &#8220;Not a host:port pair&#8221; errors using HBase"},"content":{"rendered":"<p>When trying to use <a href=\"http:\/\/pig.apache.org\/\">Apache Pig<\/a> in <a href=\"https:\/\/pig.apache.org\/docs\/r0.7.0\/tutorial.html#Running+the+Pig+Scripts+in+Local+Mode\">local mode<\/a> to connect to a <a href=\"https:\/\/hbase.apache.org\/book\/standalone_dist.html#standalone\">stand-alone<\/a> <a href=\"http:\/\/hbase.apache.org\/\">HBase<\/a> using <a href=\"https:\/\/pig.apache.org\/docs\/r0.10.0\/api\/org\/apache\/pig\/backend\/hadoop\/hbase\/HBaseStorage.html\">HBaseStorage<\/a>, I kept getting errors like this:<\/p>\n<pre>ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal error. Not a host:port pair: ?42548@endive.local10.1.10.70,\u00a0\u00a0\u00a0 64058,1341349176322<\/pre>\n<p>The unrecognized host:port pair corresponds to a happy sign-on message from the HBase log:<\/p>\n<pre>INFO org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper: The identifier of this process is 42548@endive.local<\/pre>\n<p>The problem is a version mismatch: HBase apparently <a href=\"http:\/\/article.gmane.org\/gmane.comp.java.hadoop.hbase.user\/24127\/match=host+port+pair\">changed the format of this data in 0.92<\/a>. As of Pig 0.10.0, the solution is downgrade HBase to 0.90.6.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8211; ERROR 2999: Unexpected internal error. Not a host:port pair: ?42548@endive.local10.1.10.70,\u00a0\u00a0\u00a0 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 <a href='https:\/\/www.lorrin.org\/blog\/2012\/07\/03\/apache-pig-not-a-hostport-pair-errors-using-hbase\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48],"tags":[59,58,60],"_links":{"self":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/189"}],"collection":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/comments?post=189"}],"version-history":[{"count":1,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/189\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/media?parent=189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/categories?post=189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/tags?post=189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}