docs: public static CqlBulkRecordWriter newWriter(Configuration conf,
                                                String host,
                                                int port,
                                                String username,
                                                String password,
                                                String keyspace,
                                                String table,
                                                String partitioner,
                                                String tableSchema,
                                                String insertStatement)
        throws IOException {
      Config.setClientMode(true);
      ConfigHelper.setOutputInitialAddress(conf, host);
      if (port >= 0) {
        ConfigHelper.setOutputRpcPort(conf, String.valueOf(port));
      }
      if (username != null && password != null) {
        ConfigHelper.setOutputKeyspaceUserNameAndPassword(conf, username, password);
      }
      ConfigHelper.setOutputKeyspace(conf, keyspace);
      ConfigHelper.setOutputColumnFamily(conf, table);
      ConfigHelper.setOutputPartitioner(conf, partitioner);
      CqlBulkOutputFormat.setTableSchema(conf, table, tableSchema);
      CqlBulkOutputFormat.setTableInsertStatement(conf, table, insertStatement);
      conf.set(CqlBulkRecordWriter.OUTPUT_LOCATION, Files.createTempDirectory("scio-cassandra-").toString());
  
      // workaround for Hadoop static initialization
      if (!System.getProperties().containsKey("hadoop.home.dir") &&
          !System.getenv().containsKey("HADOOP_HOME")) {
        System.setProperty("hadoop.home.dir", "/");
      }
  
      return new CqlBulkRecordWriter(conf);
    }