Como usar o java api para enviar o comando hbase shell diretamente como o jdbc?
Como usar a API Java para enviarcomando shell hbase diretamentecomo 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()) {
...
}
}
se não houver java api para isso, existe outra maneira de atingir a meta?