parameters[i] = args.getOptParam(i+1);
} // FOR
Client client = ClientFactory.createClient(128, null, false, null);
Cluster catalog_clus = args.catalog_db.getParent();
Site catalog_site = CollectionUtil.first(catalog_clus.getSites());
assert(catalog_site != null);
Host catalog_host = catalog_site.getHost();
assert(catalog_host != null);
Integer port = CollectionUtil.random(CatalogUtil.getExecutionSitePorts(catalog_site));
assert(port != null);
client.createConnection(null, catalog_host.getIpaddr(), port, "user", "password");
LOG.info(String.format("Connected to H-Store cluster at %s:%d", catalog_host.getIpaddr(), port));