Examples of KafkaConfig


Examples of kafka.server.KafkaConfig

        CreateTopicCommand.main(arguments);
    }

    protected void startKafkaServer() {
        Properties props = createProperties(kafkaWorkingDir.getAbsolutePath(), 9092, 1);
        KafkaConfig kafkaConfig = new KafkaConfig(props);

        kafkaServer = new KafkaServer(kafkaConfig, new MockTime());
        kafkaServer.startup();
    }
View Full Code Here

Examples of kafka.server.KafkaConfig

    }

    private KafkaServer startKafkaServer() {
        File tmpDir =  Files.createTempDir();
        Properties props = createProperties(tmpDir.getAbsolutePath(), 9092, 1);
        KafkaConfig kafkaConfig = new KafkaConfig(props);

        kafkaServer = new KafkaServer(kafkaConfig, new MockTime());

        kafkaServer.startup();
        return kafkaServer;
View Full Code Here

Examples of kafka.server.KafkaConfig

                .put("log.dirs", kafkaDataDir.getAbsolutePath())
                .put("zookeeper.connect", zookeeper.getConnectString())
                .putAll(Maps.fromProperties(overrideProperties))
                .build();

        KafkaConfig config = new KafkaConfig(toProperties(properties));
        this.kafka = new KafkaServerStartable(config);
    }
View Full Code Here

Examples of trident.kafka.KafkaConfig

    //stormconfig.setDebug(true);
   
        List<String> hosts = Arrays.asList(KAKFA_HOST_PORT);
        System.out.println(""+hosts.get(0));
       
        KafkaConfig kafkaConf = new KafkaConfig(KafkaConfig.StaticHosts.fromHostString(hosts, 1),KAFKA_TOPIC );
        kafkaConf.scheme = new StringScheme();
       
        System.out.println(""+kafkaConf);
   
    TridentTopology tridentTopology = new TridentTopology();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.