我试图在本地提交我的Storm拓扑。但是,在调用cluster.submitTopology()
时,我一直在控制台上收到此错误:
[Thread-5] ERROR backtype.storm.event - 处理事件时出错 java.lang.IllegalStateException:试图调用未绑定的fn: '?backtype.storm.util /一些
[Thread-5] ERROR backtype.storm.util - 停止过程:("错误时 处理事件")
public static void main(String[] args) throws Exception {
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("twitterspout", new TwitterSpout());
builder.setBolt("sentiment", new SentimentBolt()).shuffleGrouping("twitterspout");
builder.setBolt("dimension", new DimensionBolt()).shuffleGrouping("twitterspout");
builder.setBolt("clustering", new ClusteringBolt())
.fieldsGrouping("dimension", new Fields("dimension"))
.fieldsGrouping("sentiment", new Fields("sentiment"));
Config conf = new Config();
conf.setDebug(true);
System.out.print("Creating local Cluster...");
LocalCluster cluster = new LocalCluster();
System.out.println("Done!");
cluster.submitTopology("enrichment", conf, builder.createTopology());
}
感谢任何帮助。