config.set(entry.getKey(), entry.getValue());
}
// Without making a copy of the configuration we cons up, we lose some of our properties
// on the server side during testing.
this.config = HBaseConfiguration.create(config);
this.props = new ReadOnlyProps(this.config.iterator());
try {
this.connection = HConnectionManager.createConnection(this.config);
} catch (ZooKeeperConnectionException e) {
throw new SQLExceptionInfo.Builder(SQLExceptionCode.CANNOT_ESTABLISH_CONNECTION)
.setRootCause(e).build().buildException();