hbase support

This commit is contained in:
温少
2012-05-18 22:52:20 +08:00
4 changed files with 14 additions and 4 deletions
@@ -11,12 +11,12 @@ import junit.framework.TestCase;
public class HBaseDriverTest extends TestCase {
public void test_0 () throws Exception {
HBaseDriver driver = new HBaseDriver();
Connection conn = driver.connect("jdbc:druid-hbase::10.20.153.63", new Properties());
Connection conn = driver.connect("jdbc:druid-hbase:10.20.153.63", new Properties());
PreparedStatement stmt = conn.prepareStatement("SELECT * FROM test");
ResultSet rs = stmt.executeQuery();
while (rs.next()) {
System.out.print(rs.getString("id"));
}
rs.close();
stmt.close();