Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-23-2015 03:37 AM - edited 09-16-2022 02:38 AM
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)
Created 08-23-2015 06:27 AM
Created 08-23-2015 06:27 AM
Created 08-24-2015 01:15 AM
Created 08-24-2015 10:33 PM
Created 08-27-2015 06:35 AM
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.