I think you are mixing up some things here. HBase is not MySQL compliant nor it is SQL compliant at all. You have to use the HBase API. See
http://hadoop.apache.org/hbase/docs/r0.19.3/api/overview-summary.html#overview_description J-D On Wed, Jul 8, 2009 at 8:16 AM, bharath vissapragada<[email protected]> wrote: > Hi all, > > I have written a hbase program in java and when i try to run it on hbase it > gives an error (i've pasted it below). I m trying to run it locally i.e, no > other systems are involved ,hbase runs only on my machine . I have just set > the "JAVA_HOME" variable in "hbase-env.sh" and then i have issued the > started hbase using "bin/start-hbase.sh" .. Running my file gives the > following erro , can anyone help me with this. > > > > Exception :Communications link failure due to underlying exception: > > ** BEGIN NESTED EXCEPTION ** > > java.net.SocketException > MESSAGE: java.net.ConnectException: Connection refused > > STACKTRACE: > > java.net.SocketException: java.net.ConnectException: Connection refused > at > com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:156) > at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:285) > at com.mysql.jdbc.Connection.createNewIO(Connection.java:2557) > at com.mysql.jdbc.Connection.<init>(Connection.java:1485) > at > com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266) > at java.sql.DriverManager.getConnection(DriverManager.java:620) > at java.sql.DriverManager.getConnection(DriverManager.java:200) > at test.main(test.java:30) > > > ** END NESTED EXCEPTION ** > > > > Last packet sent to the server was 54 ms ago. >
