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; }
public String getProperty(String propName) { return hiveServer.getProperty(propName); }