Janusgraph连接删除服务器无法实例化CQLStoreManager的实现

时间:2019-08-08 15:26:26

标签: cassandra gremlin janusgraph

我也在ec2和janusgraph节点上同时作为另一个ec2实例运行cassandara集群。我有这些用于janus图的属性文件(janusgraph.properties)

storage.backend = cassandra
storage.hostname = [xxx.xx.xx.xx] #its valid ip and is correct, just hidden

我是从格雷姆林·库恩索尔(

graph = JanusGraphFactory.open('janusgraph.properties')

似乎无法与cassandra连接并且错误是

  

无法实例化实现:   org.janusgraph.diskstorage.cql.CQLStoreManager

我听不懂。

详细错误是

  

java.lang.IllegalArgumentException:无法实例化   实现:org.janusgraph.diskstorage.cql.CQLStoreManager位于   org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:64)     在   org.janusgraph.diskstorage.Backend.getImplementationClass(Backend.java:440)     在   org.janusgraph.diskstorage.Backend.getStorageManager(Backend.java:411)     在   org.janusgraph.graphdb.configuration.builder.GraphDatabaseConfigurationBuilder.build(GraphDatabaseConfigurationBuilder.java:50)     在   org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:161)     在   org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:132)     在   org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:79)     在org.janusgraph.core.JanusGraphFactory $ open.call(未知来源)     在   org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)     在groovysh_evaluate.run(groovysh_evaluate:3)在   groovysh_evaluate $ run.call(来源未知)   org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)     在groovysh_evaluate $ run.call(未知来源)在   org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:77)     在org.codehaus.groovy.tools.shell.Evaluator $ evaluate.call(未知   来源)   org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:199)     在   org.apache.tinkerpop.gremlin.console.GremlinGroovysh.super $ 3 $ execute(GremlinGroovysh.groovy)     在sun.reflect.GeneratedMethodAccessor20.invoke(未知来源)在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)在   org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)     在groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)处   groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:144)     在   org.apache.tinkerpop.gremlin.console.GremlinGroovysh.execute(GremlinGroovysh.groovy:72)     在org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:120)     在org.codehaus.groovy.tools.shell.Shell $ leftShift $ 1.call(未知   来源)   org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:115)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:127)     在   org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:93)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.super $ 2 $ work(InteractiveShellRunner.groovy)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)在   org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)     在groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)处   groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:144)     在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:164)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:138)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)在   org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)     在   org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite $ PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:190)     在   org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:58)     在   org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:156)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:160)     在   org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:57)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.super $ 2 $ run(InteractiveShellRunner.groovy)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)在   org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:101)     在groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:323)处   groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1217)在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:144)     在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:164)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:97)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)     在   org.apache.tinkerpop.gremlin.console.Console。(Console.groovy:153)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:234)     在   org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:466)   由以下原因引起:java.lang.reflect.InvocationTargetException   sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)     在   sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     在   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     在java.lang.reflect.Constructor.newInstance(Constructor.java:423)     在   org.janusgraph.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:58)     ... 69更多原因:   com.datastax.driver.core.exceptions.NoHostAvailableException:全部   尝试查询的主机失败(尝试:[]:9042   (com.datastax.driver.core.exceptions.TransportException:[[]:9042]   无法连接))   com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:268)     在   com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:107)     在   com.datastax.driver.core.Cluster $ Manager.negotiateProtocolVersionAndConnect(Cluster.java:1652)     在com.datastax.driver.core.Cluster $ Manager.init(Cluster.java:1571)     在com.datastax.driver.core.Cluster.init(Cluster.java:208)处   com.datastax.driver.core.Cluster.connectAsync(Cluster.java:376)在   com.datastax.driver.core.Cluster.connectAsync(Cluster.java:355)在   com.datastax.driver.core.Cluster.connect(Cluster.java:305)位于   org.janusgraph.diskstorage.cql.CQLStoreManager.initializeSession(CQLStoreManager.java:302)     在   org.janusgraph.diskstorage.cql.CQLStoreManager。(CQLStoreManager.java:174)     ...还有74个

2 个答案:

答案 0 :(得分:1)

所以我想通了。

Janusgraph documentation表示将群集中的一个节点放置为

storage.hostname = [一个Cassandra-EC2实例的IP地址]

由于它不是形式,所以我认为它是数组语法

[xx.xx.xx.xx]代替xx.xx.xx.xx有用

答案 1 :(得分:0)

我遇到了类似的问题,但 EC2 实例被管理员关闭,因此出现了问题。 重新启动 EC2 实例后,问题就解决了。