How to use java api to send hbase shell command directly like jdbc?
How to use java api to send hbase shell command directly like jdbc ? public static void main(String args[]) { // get Connection to connect hbase Connection conn = ....; // hbase shell command String cmd = "get 't1','r1'"; Statement stmt = conn.createStatement(); ResultSet rs = stmt.executeQuery(cmd); while(rs.next()) { ... } } if there is no java api for this, is there another way to achieve the goal? Ram Ghadiyaram Please note that, Phoenix can execute queries in jdbc style... If you want to execute get commands then you can use Hbase java client api directly. Its not common practice to