static void createIndexTable(Logger log, State state, String suffix, Random rand) throws Exception {
Connector conn = state.getConnector();
String name = (String) state.get("indexTableName") + suffix;
int numPartitions = (Integer) state.get("numPartitions");
boolean enableCache = (Boolean) state.get("cacheIndex");
conn.tableOperations().create(name);
conn.tableOperations().addSplits(name, genSplits(numPartitions, rand.nextInt(numPartitions) + 1, "%06x"));
if (enableCache) {
conn.tableOperations().setProperty(name, Property.TABLE_INDEXCACHE_ENABLED.getKey(), "true");
conn.tableOperations().setProperty(name, Property.TABLE_BLOCKCACHE_ENABLED.getKey(), "true");