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

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


      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);

      this.schema = new LogSchema().getAvroSchema();
View Full Code Here


                  CConfiguration cConfig, LocationFactory locationFactory) throws Exception {
    LOG.info("Initializing LogSaver...");

    this.topic = KafkaTopic.getTopic();
    LOG.info(String.format("Kafka topic is %s", this.topic));
    this.serializer = new LoggingEventSerializer();

    this.checkpointManager = new CheckpointManager(tableUtil, txClient, topic);
    FileMetaDataManager fileMetaDataManager = new FileMetaDataManager(tableUtil, txClient, locationFactory);
    this.messageTable = HashBasedTable.create();
View Full Code Here

TOP

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

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.