启动multilang子进程时出现Storm错误

时间:2015-05-05 14:24:28

标签: java c++ apache-storm

当我使用shell风暴的Cpp包装器(StormCpp)使用ShellBolt的multilang子进程时,我遇到了一个风暴错误,这个给了我下一个错误:

  

10784 [Thread-17-split] ERROR backtype.storm.util - 异步循环死了!   java.lang.RuntimeException:启动multilang子进程时出错

这是我的拓扑Java代码:

public class AppCppStorm {
public static class CppStorm extends ShellBolt implements IRichBolt {

    public CppStorm()
    {
        super("test");
    }

    @Override
    public void declareOutputFields(OutputFieldsDeclarer declarer) {}

    @Override
    public Map<String, Object> getComponentConfiguration() {
        return null;
    }
}
public static void main(String[] args) throws Exception {

    TopologyBuilder builder = new TopologyBuilder();

    builder.setSpout("spout", new RandomSentenceSpout());

    builder.setBolt("split", new CppStorm())
            .shuffleGrouping("spout");


    Config conf = new Config();
    conf.setDebug(true);

    conf.setNumWorkers(3);
    conf.setMaxTaskParallelism(3);

    LocalCluster cluster = new LocalCluster();
    cluster.submitTopology("test", conf, builder.createTopology());

    Thread.sleep(10000);

    cluster.shutdown();

}
}

如果有人能在这一点上帮助我,我会很感激。

1 个答案:

答案 0 :(得分:0)

我发现了这个错误,我没有加入我的ShellBolt&amp; Incanciation,这是我Bolt Cpp应用程序的绝对路径。