我正在尝试在我的VPS上为学校项目设置一个单节点的Cassandra集群.所以我在Ubuntu 16.04(JVM 1.8.0_161)上安装了cassandra,但是当我运行时,我遇到了这个错误……
https://pastebin.com/raw/h1vWhm2e
我只是通过cassandra命令运行它.
相关位:
Exception (java.lang.AbstractMethodError) encountered during startup: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote; java.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote; at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:150) at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:135) at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:405) at org.apache.cassandra.utils.JMXServerUtils.createJMXServer(JMXServerUtils.java:104) at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(CassandraDaemon.java:143) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:188) at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:600) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689) ERROR [main] 2018-01-29 21:59:17,370 CassandraDaemon.java:706 - Exception encountered during startup java.lang.AbstractMethodError: org.apache.cassandra.utils.JMXServerUtils$Exporter.exportObject(Ljava/rmi/Remote;ILjava/rmi/server/RMIClientSocketFactory;Ljava/rmi/server/RMIServerSocketFactory;Lsun/misc/ObjectInputFilter;)Ljava/rmi/Remote; at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:150) ~[na:1.8.0_161] at javax.management.remote.rmi.RMIJRMPServerImpl.export(RMIJRMPServerImpl.java:135) ~[na:1.8.0_161] at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:405) ~[na:1.8.0_161] at org.apache.cassandra.utils.JMXServerUtils.createJMXServer(JMXServerUtils.java:104) ~[apache-cassandra-3.11.1.jar:3.11.1] at org.apache.cassandra.service.CassandraDaemon.maybeInitJmx(CassandraDaemon.java:143) [apache-cassandra-3.11.1.jar:3.11.1] at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:188) [apache-cassandra-3.11.1.jar:3.11.1] at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:600) [apache-cassandra-3.11.1.jar:3.11.1] at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:689) [apache-cassandra-3.11.1.jar:3.11.1]
这是一个已知问题,跟踪为
CASSANDRA-14173 – 直到新版本需要将Java降级到至少构建152
原文链接:https://www.f2er.com/ubuntu/348195.html