use of com.alibaba.jstorm.elasticsearch.userdefine.TestIndexBolt in project jstorm by alibaba.
the class TestSuite method testUserDefine.
@Test
public void testUserDefine() {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("user-define-spout", new TestIndexSpout());
TestIndexBolt esIndexBolt = new TestIndexBolt(esConfig);
builder.setBolt("user-define-bolt", esIndexBolt).shuffleGrouping("user-define-spout");
cluster.submitTopology("UserDefine-Test", conf, builder.createTopology());
}
Aggregations