Hi All
I have used these configuration settings to access hbase server from java
client
HBaseConfiguration config = new HBaseConfiguration();
config.clear();
config.set("hbase.zookeeper.quorum", "myserver.mycompany.com:2181");
config.set("hbase.zookeeper.property.clientPort","2181");
The problem is that its trying to connect to local ip address instead of
global IP.
INFO zookeeper.ZooKeeper: Initiating client connection, connectString=
myserver.mycompany.com:2181 sessionTimeout=60000
watcher=org.apache.hadoop.hbase.client.hconnectionmanager$clientzkwatc...@fd54d6
10/08/31 20:27:33 INFO zookeeper.ClientCnxn: Opening socket connection to
server
myserver.mycompany.com/203.14.166.12:2181<http://myserver.mycompany.com/20314.166.12:2181>
10/08/31 20:27:33 INFO zookeeper.ClientCnxn: Socket connection established
to myserver.mycompany.com/203.14.166.12:2181, initiating session
10/08/31 20:27:34 INFO zookeeper.ClientCnxn: Session establishment complete
on server myserver.mycompany.com/203.14.166.12:2181, sessionid =
0x12acaa705e30004, negotiated timeout = 40000
10/08/31 20:27:54 INFO ipc.HbaseRPC: Problem connecting to server: /
10.0.3.85:60020
10/08/31 20:28:15 INFO ipc.HbaseRPC: Problem connecting to server: /
10.0.3.85:60020
10/08/31 20:28:36 INFO ipc.HbaseRPC: Problem connecting to server: /
10.0.3.85:60020
but it should try to connect to global ip not local ip. so need to resolve
this issue.I think we might need to put somewhere global Ip Addresss. I have
checked the zk dump and it has the following information
HBase tree in ZooKeeper is rooted at /hbase
Cluster up? true
Master address: 10.0.3.85:60000
Region server holding ROOT: 10.0.3.85:60020
Region servers:
- 10.0.3.100:60020
- 10.0.3.85:60020
Quorum Server Statistics:
- hadoop.zoniversal.com:2181
Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT
Clients:
/10.0.3.85:57636[1](queued=0,recved=1994,sent=1994)
/10.0.3.85:57654[1](queued=0,recved=1991,sent=1991)
/10.0.3.85:49253[0](queued=0,recved=1,sent=0)
/10.0.3.85:46493[1](queued=0,recved=2041,sent=2042)
/10.0.3.100:50387[1](queued=0,recved=2016,sent=2017)
Latency min/avg/max: 0/0/118
Received: 8056
Sent: 8057
Outstanding: 0
Zxid: 0xda
Mode: standalone
Node count: 11
Anybody there to help me out??
Thanks
--
Regards
Shuja-ur-Rehman Baig
http://pk.linkedin.com/in/shujamughal
Cell: +92 3214207445