How to disable/turn off the logging feature from Storm

后端 未结 6 1920
傲寒
傲寒 2021-02-04 07:07

I want to turn off the logging feature offered by default when we run from local cluster. Currently its logging so many information on the console.

Below is the example

6条回答
  •  独厮守ぢ
    2021-02-04 07:48

    This works for me (storm version 0.9.0.1):

    TopologyBuilder builder = new TopologyBuilder();
    builder.setSpout(..);
    builder.setBolt(..);
    :
    
    Config conf = new Config();
    conf.put(Config.TOPOLOGY_DEBUG, false);
    
    LocalCluster cluster = new LocalCluster();
    cluster.submitTopology("topologyName", conf, builder.createTopology());
    

提交回复
热议问题