use of backtype.storm.scheme.StringScheme in project storm-kestrel by nathanmarz.
the class TestTopology method main.
public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
KestrelThriftSpout spout = new KestrelThriftSpout("localhost", 2229, "test", new StringScheme());
builder.setSpout("spout", spout).setDebug(true);
builder.setBolt("bolt", new FailEveryOther()).shuffleGrouping("spout");
LocalCluster cluster = new LocalCluster();
Config conf = new Config();
cluster.submitTopology("test", conf, builder.createTopology());
Thread.sleep(600000);
}
Aggregations