gpt4 book ai didi

java - UnsupportedClassVersionError-AMQPSpout : storm topology not running

转载 作者:行者123 更新时间:2023-11-30 06:21:15 25 4
gpt4 key购买 nike

在尝试提交 Storm 拓扑时,

./storm jar /home/winoria1/Desktop/stormtopology.jar com.storm.StormTopology 

我收到以下错误-

Exception in thread "main" java.lang.UnsupportedClassVersionError: com/rapportive/storm/spout/AMQPSpout : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
at com.winoria.frequest.SuggestionTopology.main(SuggestionTopology.java:28)

我的java版本是

winoria1@winoria:~$ java -version

java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.4)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

winoria1@winoria:~$ javac -version

javac 1.6.0_27
winoria1@winoria:~$

任何人都请帮助我......

最佳答案

主要版本 51 意味着这个类是用 java 7 编译的。您需要升级您的 java 才能运行它。

关于java - UnsupportedClassVersionError-AMQPSpout : storm topology not running,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20772538/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com