title: How to use java api to send hbase shell command directly like jdbc?
body: <p>How to use java api to send <strong>hbase shell command</strong> directly <strong>like jdbc</strong>? </p>
  
  <pre><code>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()) {
         ...
      }
  }
  </code></pre>
  
  <p>if there is no java api for this, is there another way to achieve the goal?</p>