提交topology在storm集群上却rabbitmq包的异常

Exception in thread "main" java.lang.NoClassDefFoundError: com/rabbitmq/client/Consumer

        at com.ck.MainTopoCombine.main(MainTopoCombine.java:23)

Caused by: java.lang.ClassNotFoundException: com.rabbitmq.client.Consumer

        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

        at java.security.AccessController.doPrivileged(Native Method)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

        ... 1 more

是因为storm目录lib下缺少rabbitmq-client.jar的jar包将他copy入即可.

你可能感兴趣的:(提交topology在storm集群上却rabbitmq包的异常)