java.lang.ClassNotFoundException: TopologyMain

╄→尐↘猪︶ㄣ 提交于 2019-11-30 14:39:06

Naresh, based on what I see the solution to your problem may lie in the class name you used. Here is the command line argument you specified:

storm jar TopologyMain.jar TopologyMain wordcount

You refer to your main class as "TopologyMain" using only the class name rather than the fully qualified name. Here is my revision of your storm command line attempt:

storm jar TopologyMain.jar com.test.newpackage.TopologyMain

I use the full package name instead of just the class by itself. Note that I also removed the reference to "wordcount" because I don't know what it's doing there (there are no classes, methods, or variables called "wordcount" in your code sample).

Here is an excellent article on Google groups which covers early setup problems with Storm: early setup question

I found myself using this article for the first couple of weeks when I started using Storm.

Please let us know if this solves your problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!