AnsweredAssumed Answered

Nutch-Gora-HBase Client Protocol Mismatch

Question asked by xentnex on Mar 25, 2015
Server Side Software Version details below:

HBase Version 0.98.7-mapr-1501-r1, rb0b533833a83e6674c25c46f7327aad008f5a10d
Hadoop Version 2.5.1-mapr-1501, rad68c0458a12d5aa9c40e89dba62ba2ded6d812c
MapR Version 4.0.2

Client Side Software Version details below:


Hadoop Core maven dependency set for version : **1.0.3-mapr-4.0.2** and jar file : **hadoop-core-1.0.3-**
HBase maven dependency set for version: **mapr-4.0.2** and jar file : **mapr-hbase-2.5.1-mapr.jar**
hbase 4.0.2-mapr

It is shown that when we are connecting to the HBase from java client we wrote, it gives an exception
which shows protocol mismatch. Although we have compatible versions of mapr-... packages on both server and client side.

Exception:


2015-03-25 17:42:56,471 INFO  crawl.InjectorJob - InjectorJob: starting at 2015-03-25 17:42:56
2015-03-25 17:42:56,472 INFO  crawl.InjectorJob - InjectorJob: Injecting urlDir: /home/urls
2015-03-25 17:42:56,809 WARN  util.NativeCodeLoader - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2015-03-25 17:42:57,815 ERROR crawl.InjectorJob - InjectorJob: org.apache.gora.util.GoraException: java.lang.RuntimeException: java.lang.IllegalArgumentException: Not a host:port pair: PBUF

mapr01       )
        at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:169)
        at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:137)
        at org.apache.nutch.storage.StorageUtils.createWebStore(StorageUtils.java:78)
        at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:218)
        at org.apache.nutch.crawl.InjectorJob.inject(InjectorJob.java:252)
        at org.apache.nutch.crawl.InjectorJob.run(InjectorJob.java:275)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
        at org.apache.nutch.crawl.InjectorJob.main(InjectorJob.java:284)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Not a host:port pair: PBUF

mapr01       )
        at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:133)
        at org.apache.gora.store.DataStoreFactory.initializeDataStore(DataStoreFactory.java:104)
        at org.apache.gora.store.DataStoreFactory.createDataStore(DataStoreFactory.java:163)
        ... 7 more
Caused by: java.lang.IllegalArgumentException: Not a host:port pair: PBUF

mapr01       )
        at org.apache.hadoop.hbase.util.Addressing.parseHostname(Addressing.java:60)
        at org.apache.hadoop.hbase.ServerName.<init>(ServerName.java:101)
        at org.apache.hadoop.hbase.ServerName.parseVersionedServerName(ServerName.java:283)
        at org.apache.hadoop.hbase.MasterAddressTracker.bytesToServerName(MasterAddressTracker.java:77)
        at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:61)
        at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:805)
        at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:127)
        at org.apache.gora.hbase.store.HBaseStore.initialize(HBaseStore.java:115)
        ... 9 more

Outcomes