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.