hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hegner, Travis" <THeg...@trilliumit.com>
Subject RE: JAVA CLIENT==10/08/31 20:27:54 INFO ipc.HbaseRPC: Problem connecting to server: /
Date Wed, 01 Sep 2010 12:34:29 GMT

If you are not running any type of DNS/rDNS service, then make sure the /etc/hosts file on
each of your nodes maps each node to the IP address you want it to resolve to.

Travis Hegner

-----Original Message-----
From: Shuja Rehman [mailto:shujamughal@gmail.com]
Sent: Wednesday, September 01, 2010 6:02 AM
To: user@hbase.apache.org
Subject: JAVA CLIENT==10/08/31 20:27:54 INFO ipc.HbaseRPC: Problem connecting to server: /

Hi All

I have used these configuration settings to access hbase server from java

HBaseConfiguration config = new HBaseConfiguration();
  config.set("hbase.zookeeper.quorum", "myserver.mycompany.com: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
10/08/31 20:27:33 INFO zookeeper.ClientCnxn: Opening socket connection to
server myserver.mycompany.com/<http://myserver.mycompany.com/20314.166.12:2181>
10/08/31 20:27:33 INFO zookeeper.ClientCnxn: Socket connection established
to myserver.mycompany.com/, initiating session
10/08/31 20:27:34 INFO zookeeper.ClientCnxn: Session establishment complete
on server myserver.mycompany.com/,  sessionid =
0x12acaa705e30004, negotiated timeout = 40000

10/08/31 20:27:54 INFO ipc.HbaseRPC: Problem connecting to server: /
10/08/31 20:28:15 INFO ipc.HbaseRPC: Problem connecting to server: /
10/08/31 20:28:36 INFO ipc.HbaseRPC: Problem connecting to server: /

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:
  Region server holding ROOT:
  Region servers:
  Quorum Server Statistics:
    - hadoop.zoniversal.com:2181
        Zookeeper version: 3.3.1-942149, built on 05/07/2010 17:14 GMT

        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??


Shuja-ur-Rehman Baig
Cell: +92 3214207445

The information contained in this communication is confidential and is intended only for the
use of the named recipient.  Unauthorized use, disclosure, or copying is strictly prohibited
and may be unlawful.  If you have received this communication in error, you should know that
you are bound to confidentiality, and should please immediately notify the sender or our IT
Department at  866.459.4599.

View raw message