1: First Run Strom program appears the following error, paste it, easy to fill the brain, but also want to help to see the small partners:
The error is as follows, and the main problem is that when you start using MAVEN to get the jar package, you need to write <scope>provided</scope>, which is the scope of the comment when it is run. The jar package needs to be downloaded locally, but the jar packages already exist when the virtual machine is running, so it's a conflict to write this phrase:
1 Java.lang.noclassdeffounderror:backtype/storm/topology/irichspout2 At Java.lang.Class.getDeclaredMethods0 (Native Method)3At Java.lang.Class.privateGetDeclaredMethods (Class.java:2625)4At JAVA.LANG.CLASS.GETMETHOD0 (Class.java:2866)5At Java.lang.Class.getMethod (Class.java:1676)6At Sun.launcher.LauncherHelper.getMainMethod (Launcherhelper.java:494)7At Sun.launcher.LauncherHelper.checkAndLoadMain (Launcherhelper.java:486)8caused By:java.lang.ClassNotFoundException:backtype.storm.topology.IRichSpout9At java.net.urlclassloader$1. Run (URLClassLoader.java:366)TenAt java.net.urlclassloader$1. Run (URLClassLoader.java:355) One At java.security.AccessController.doPrivileged (Native Method) AAt Java.net.URLClassLoader.findClass (URLClassLoader.java:354) -At Java.lang.ClassLoader.loadClass (Classloader.java:425) -At Sun.misc.launcher$appclassloader.loadclass (Launcher.java:308) theAt Java.lang.ClassLoader.loadClass (Classloader.java:358) -...6 More -ExceptioninchThread"Main" -Process finished with exit code1
The workaround is as follows:
Stop more ...
Caused by:java.lang.ClassNotFoundException:backtype.storm.topology.IRichSpout