storm集群提交jar包运行时 一直报异常:
Exception in thread "main" java.lang.NoClassDefFoundError: backtype/storm/topology/IRichSpout
经过几天的挣扎 发现是strom版本问题
strom官网有句话:
In the latest version, the class packages have been changed from “backtype.storm” to “org.apache.storm” so the topology code compiled with older version won’t run on the Storm 1.0.0 just like that. Backward compatibility is available through following configuration
意思是新版中包名由 backtype.storm 变为 org.apache.storm
所以这个问题是由于storm版本问题造成的 同一一下版本即可
在整合kafka时候也是同理 需要统一版本。