synchronized Connection getConnection(Configuration configuration) throws IOException {
if (connection != null) {
return connection;
}
config = new PhoenixPigConfiguration(configuration);
try {
LOG.info("Initializing new Phoenix connection...");
connection = config.getConnection();
LOG.info("Initialized Phoenix connection, autoCommit="+ connection.getAutoCommit());
return connection;