向风暴集群提交拓扑时出错

Error while submiting topology to storm clustre

我正在 运行 设置一个风暴拓扑。这是基本的字数 topology.I 我正在使用文本文件作为源和风暴来处理 data.While 提交我面临的这些issues.I 我是 storm.Please 的新手,建议我提前 code.Thanks 中需要做的更改!!

我的拓扑

public class TopologyMain {
public static void main(String[] args) throws InterruptedException, AlreadyAliveException, InvalidTopologyException {

    //Topology definition
    TopologyBuilder builder = new TopologyBuilder();
    builder.setSpout("word-reader",new WordReader());
    builder.setBolt("word-normalizer", new WordNormalizer())
        .shuffleGrouping("word-reader");
    builder.setBolt("word-counter", new WordCounter(),1)
        .fieldsGrouping("word-normalizer", new Fields("word"));

    //Configuration
    Config conf = new Config();
    conf.put("wordsFile", args[0]);
    conf.setDebug(false);
    //Topology run
    conf.put(Config.TOPOLOGY_MAX_SPOUT_PENDING, 1);
    conf.put(Config.NIMBUS_HOST, "192.168.1.229");
    //LocalCluster cluster = new LocalCluster();
    //cluster.submitTopology("Getting-Started-Toplogie", conf, builder.createTopology());
    //Thread.sleep(1000);
    System.setProperty("storm.jar", "/home/raremile/st/examples-ch02-getting_started/target/Getting-Started-0.0.1-SNAPSHOT.jar");
    StormSubmitter.submitTopology("Count-Word-Topology-With-Refresh-Cache", conf,
    builder.createTopology());
    //cluster.shutdown();
  }
}

错误

Exception in thread "main" java.lang.NoSuchMethodError: backtype.storm.topology.TopologyBuilder.setBolt(Ljava/lang/String;Lbacktype/storm/topology/IBasicBolt;Ljava/lang/Integer;)Lbacktype/storm/topology/BoltDeclarer; at TopologyMain.main(TopologyMain.java:21)

我能够在本地模式下运行此代码而不会出现任何错误。

将版本更改为 0.9.0.1 我可以 运行 它

<dependency>
<groupId>storm</groupId>
<artifactId>storm</artifactId>
<version>0.9.0.1</version>
</dependency>