Very often it's a version problem, make sure both the client and the server have the same HBase and Hadoop version on their classpath.
J-D On Thu, Dec 9, 2010 at 11:22 AM, Peter Haidinyak <phaidin...@local.com> wrote: > Hi, > I'm using HBase .89 and Hadoop .20.2 > > I'm trying to create a connection to HBase from a remote Java Client. I am > using the following code... > > final Configuration configuration = HBaseConfiguration.create(); > configuration.set("hbase.zookeeper.quorum", "caiss01a"); > configuration.set("hbase.zookeeper.property.clientPort", "2222"); > m_trafficTable = new HTable(configuration, TRAFFIC_LOG_TABLE_NAME); > m_logger.info("Connection successful."); > > I never get to the line 'm_logger.info("Connection successful.");' > > The log4j logging show the following... > > 10/12/09 11:17:30 INFO zookeeper.ZooKeeper: Initiating client connection, > connectString=caiss01a:2222 sessionTimeout=60000 > watcher=org.apache.hadoop.hbase.zookeeper.zookeeperwrap...@19616c7 > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: zookeeper.disableAutoWatchReset > is false > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Attempting connection to server > caiss01a/172.16.2.224:2222 > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Priming connection to > java.nio.channels.SocketChannel[connected local=/10.2.136.59:3592 > remote=caiss01a/172.16.2.224:2222] > 10/12/09 11:17:30 INFO zookeeper.ClientCnxn: Server connection successful > > I've search the list and Google, does anyone hear have a suggestion? > > Thanks > > -Pete >