Preconditions.checkArgument(!this.topic.isEmpty(), "Kafka topic is emtpty!");
this.numPartitions = cConfig.getInt(LoggingConfiguration.NUM_PARTITIONS, -1);
Preconditions.checkArgument(this.numPartitions > 0,
"numPartitions should be greater than 0. Got numPartitions=%s", this.numPartitions);
this.partitioner = new StringPartitioner(numPartitions);
this.serializer = new LoggingEventSerializer();
this.fileMetaDataManager =
new FileMetaDataManager(new LogSaverTableUtil(dsFramework, cConfig), txClient, locationFactory);