How to submit a topology in storm production cluster using IDE

后端 未结 4 833
臣服心动
臣服心动 2020-12-25 15:02

I am facing an issue Must submit topologies using the \'storm\' client script so that StormSubmitter knows which jar to upload while submitting a topology to a

4条回答
  •  梦谈多话
    2020-12-25 15:10

    Well found the solution. When we ran "storm jar" it trigger a property flag for storm.jar in the submitted jar. So if we want to programmatically submit a jar then simply set the flag this way

    System.setProperty("storm.jar", );

    For example:

    System.setProperty("storm.jar", "/Users/programming/apache-storm-1.0.1/lib/storm-core-1.0.1.jar");
    StormSubmitter.submitTopology("myTopology", config, builder.createTopology());
    

提交回复
热议问题