KijiURI uri,
HBaseFactory hbaseFactory,
Map<String, String> properties,
Configuration conf
) throws IOException {
final CassandraFactory cassandraFactory = CassandraFactory.Provider.get();
if (uri.getInstance() == null) {
throw new KijiInvalidNameException(String.format(
"Kiji URI '%s' does not specify a Kiji instance name", uri));
}
try {
LOG.info(String.format("Installing Cassandra Kiji instance '%s'.", uri));
CassandraAdminFactory cassandraAdminFactory = cassandraFactory.getCassandraAdminFactory(uri);
LOG.debug("Creating CassandraAdmin for Kiji installation.");
CassandraAdmin cassandraAdmin = cassandraAdminFactory.create(uri);
// Install the system, meta, and schema tables.
CassandraSystemTable.install(cassandraAdmin, uri, properties);