Support Questions

Find answers, ask questions, and share your expertise

Hbase coonection via Java Application - Cloudera Quick VM - NumberformatException

avatar
New Contributor

I am trying to connect to Hbase via Java application but got the following error.

Not able to find out  which file is being read by the process for string  quickstart.cloudera:60000, which has special character.

Any pointer will help.

 

 

 

 

15/08/23 02:49:45 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection
15/08/23 02:49:45 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/127.0.0.1:2181
15/08/23 02:49:45 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session
15/08/23 02:49:45 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x14f59d90ec20008, negotiated timeout = 60000
Exception in thread "main" java.lang.NumberFormatException: For input string: "60000}��,���PBUF
 
quickstart.cloudera�������)

    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.parseInt(Integer.java:527)
    at org.apache.hadoop.hbase.HServerAddress.<init>(HServerAddress.java:63)
    at org.apache.hadoop.hbase.MasterAddressTracker.getMasterAddress(MasterAddressTracker.java:63)
    at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation.getMaster(HConnectionManager.java:561)
    at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:99)
    at com.igalia.enron_importer.Main$HBaseHelper.create(Main.java:53)
    at com.igalia.enron_importer.Main.main(Main.java:266)

1 ACCEPTED SOLUTION

avatar
Mentor
What version of HBase libraries is your application referencing? It seems
like an old one, not matching the cluster ones.

View solution in original post

4 REPLIES 4

avatar
Mentor
What version of HBase libraries is your application referencing? It seems
like an old one, not matching the cluster ones.

avatar
New Contributor
Thank you Harsh, you are right, just working to upgrade client library, will post here for any further issue.

avatar
Mentor
Thanks for taking the time to update the case. If it did resolve your issue, please do mention the steps taken and mark the thread as resolved, so it helps others with similar errors when they land here!

avatar
New Contributor

Thanks Harsh, I have upgraded client side Hbase library and client code as per updated hbase-client api version 0.99.1. Now it works fine.