Any proxy between the machines where client and HBase cluster is running? Regards Ram
-----Original Message----- From: Ali Raza [mailto:[email protected]] Sent: Tuesday, October 18, 2011 12:44 PM To: [email protected] Subject: Hbase client do not able to connect with remote Hbase server i have written a following hbase client class for remote server: System.out.println("Hbase Demo Application "); // CONFIGURATION // ENSURE RUNNING try { HBaseConfiguration config = new HBaseConfiguration(); config.clear(); config.set("hbase.zookeeper.quorum", "192.168.15.20"); config.set("hbase.zookeeper.property.clientPort","2181"); config.set("hbase.master", "192.168.15.20:60000"); //HBaseConfiguration config = HBaseConfiguration.create(); //config.set("hbase.zookeeper.quorum", "localhost"); // Here we are running zookeeper locally HBaseAdmin.checkHBaseAvailable(config); System.out.println("HBase is running!"); // createTable(config); //creating a new table HTable table = new HTable(config, "mytable"); System.out.println("Table mytable obtained "); addData(table); } catch (MasterNotRunningException e) { System.out.println("HBase is not running!"); System.exit(1); }catch (Exception ce){ ce.printStackTrace(); it is throwing some exception: Oct 17, 2011 1:43:54 PM org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation getMaster INFO: getMaster attempt 0 of 1 failed; no more retrying. java.net.ConnectException: Connection refused at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:567) at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:2 06) at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404) at org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClien t.java:328) at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:883) at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:750) at org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:257) at $Proxy4.getProtocolVersion(Unknown Source) at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:419) at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:393) at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:444) at org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation. getMaster(HConnectionManager.java:359) at org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:89) at org.apache.hadoop.hbase.client.HBaseAdmin.checkHBaseAvailable(HBaseAdmin.jav a:1215) at com.ifkaar.hbase.HBaseDemo.main(HBaseDemo.java:31) HBase is not running! can you tell me why is it throwing an exception, what is wrong with code and how to solve it? -- View this message in context: http://apache-hbase.679495.n3.nabble.com/Hbase-client-do-not-able-to-connect -with-remote-Hbase-server-tp3430514p3430514.html Sent from the HBase - Developer mailing list archive at Nabble.com.
