Esempio n. 1
0
 public Connection createConnection(String username, String password) throws Exception {
   String url = hiveServer.getURL();
   Connection connection = DriverManager.getConnection(url, username, password);
   connections.add(connection);
   assertNotNull("Connection is null", connection);
   assertFalse("Connection should not be closed", connection.isClosed());
   Statement statement = connection.createStatement();
   statement.close();
   return connection;
 }
Esempio n. 2
0
 public String getProperty(String propName) {
   return hiveServer.getProperty(propName);
 }