def _CreateYCSBTable(vm, keyspace=KEYSPACE_NAME, column_family=COLUMN_FAMILY,
                     replication_factor=REPLICATION_FACTOR):
  template_path = data.ResourcePath(CREATE_TABLE_SCRIPT)
  remote_path = os.path.join(
      cassandra.CASSANDRA_DIR,
      os.path.basename(os.path.splitext(template_path)[0]))
  vm.RenderTemplate(template_path, remote_path,
                    context={'keyspace': keyspace,
                             'column_family': column_family,
                             'replication_factor': replication_factor})

  cassandra_cli = cassandra.GetCassandraCliPath(vm)
  command = '{0} -f {1} -h {2}'.format(cassandra_cli, remote_path,
                                       vm.internal_ip)
  vm.RemoteCommand(command, should_log=True)
Creates a Cassandra table for use with YCSB.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/cassandra_ycsb_benchmark.py/_CreateYCSBTable