2017-01-26 11 views
0

私は地元のモードで簡単な単語カウントトポロジーを実行しています。私はIntellij IDEでトポロジを実行するとすべてが完璧に動作し、文字列から単語の数を取得します。ストームの例エラー

A JNI error has occurred, please check your installation and try again 
Exception in thread "main" java.lang.NoClassDefFoundError: backtype/storm/topology/IRichSpout 
at java.lang.Class.getDeclaredMethods0(Native Method) 
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) 
at java.lang.Class.privateGetMethodRecursive(Class.java:3048) 
at java.lang.Class.getMethod0(Class.java:3018) 
at java.lang.Class.getMethod0(Class.java:3018) 
at java.lang.Class.getMethod(Class.java:1784) 
at sun.launcher.LauncherHelper.validateMainClass(LauncherHelper.java:544) 

は、私は適切なfiles.Anyのアイデアでありながら、コマンドのMVNパッケージと嵐のjarターゲット/ WORDCOUNT-1.0-SNAPSHOT.jarにcom.microsoft.example.WordCountTopologyを使用:Macのターミナルから、私はエラーを取得しますか?

答えて

0

STORM_HOMEを設定する必要があります。必要なジャーを見つけることができません。$STORM_HOME/libにあるはずです。

また、storm-coreの依存関係をpom.xmlに指定して、far32を<scope>compile</scope>として作成することもできます。