use of org.apache.storm.kafka.StringScheme in project storm by apache.
the class TridentKafkaWordCount method newTridentKafkaConfig.
private static TridentKafkaConfig newTridentKafkaConfig(String zkUrl) {
ZkHosts hosts = new ZkHosts(zkUrl);
TridentKafkaConfig config = new TridentKafkaConfig(hosts, "test");
config.scheme = new SchemeAsMultiScheme(new StringScheme());
// Consume new data from the topic
config.startOffsetTime = kafka.api.OffsetRequest.LatestTime();
return config;
}
Aggregations