ZooKeeper returns unwanted characters for HBase server address
How does this happen?
Sorry if I'm talking silly here.
I am trying to create a basic play2.0 application - HBase. When I try to hook up HBase from a game, ZooKeeper returns me unnecessary characters for the HBase server address.
def main(args : Array[String]) : Unit = {
val conf = HBaseConfiguration create
val admin = new HBaseAdmin(conf)
// list the tables
val listtables = admin.listTables()
listtables.foreach(println)
}
I nailed to the weak spot and it showed up in org.apache.hadoop.hbase.zookeeper.ZooKeeperNodeTracker. It loads data with spam values ββfor the local address and port, which is then passed to the HServerAddress class for further action.
I looked at my hbase-site.xml (only contains localhost) and hbase-default.xml which looks just fine, as pointed out by Apache.
<configuration>
<property>
<name>hbase.rootdir</name>
<value>file:///Users/gchandra/Applications/hbase-0.92.1/data-store/hbase</value>
</property>
</configuration>
Paste below stack trace.
Exception in thread "main" java.lang.IllegalArgumentException: Not a host:port pair: ? 5610@L-C02FF6MTDF91 192.168.1.4,64256,1332739256936
at org.apache.hadoop.hbase.HServerAddress.<init>(HServerAddress.java:60)
at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:63)
at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:354)
at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:94)
at services.HBaseConnection$.main(HBaseConnection.scala:20)
at services.HBaseConnection.main(HBaseConnection.scala)
Appreciate it if someone can help me here! Thank you!
source to share
Just searched your exception post and found this: Re: IllegalArgumentException: not host: port
Do you have a version mismatch between your client library and your server?
source to share