- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Hbase coonection via Java Application - Cloudera Quick VM - NumberformatException
- Labels:
-
Apache HBase
-
Apache Zookeeper
Created on ‎08-23-2015 03:37 AM - edited ‎09-16-2022 02:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
like an old one, not matching the cluster ones.
Created ‎08-23-2015 06:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
like an old one, not matching the cluster ones.
Created ‎08-24-2015 01:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎08-24-2015 10:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎08-27-2015 06:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
