Package co.cask.cdap.logging.appender.kafka

Examples of co.cask.cdap.logging.appender.kafka.StringPartitioner


      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);
View Full Code Here

TOP

Related Classes of co.cask.cdap.logging.appender.kafka.StringPartitioner

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.