janusgraph connect to remove server无法示例化cqlstoremanager的实现

umuewwlo  于 2021-06-14  发布在  Cassandra
关注(0)|答案(1)|浏览(394)

我在ec2和janusgraph节点上运行一个cassandara集群作为另一个ec2示例。我有janusgraph的这些属性文件(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(后端。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.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray)的org.janusgraph.core.janusgraphfactory$open.call(未知源代码)。java:47)在org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite。java:115)在org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite。java:127)在groovysh\u evaluate.run(groovysh_evaluate:3)在groovysh\u中,评估org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray)中的$run.call(未知源)。java:47)在groovysh\u中计算$run.call(未知源代码)org.codehaus.groovy.tools.shell.interpreter.evaluate(解释器。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(方法。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(方法。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(脚本字节码适配器)。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(方法。java:498)在org.codehaus.groovy.runtime.callsite.plainobjectmetamethodsite.doinvoke(plainobjectmetamethodsite。java:43)位于org.codehaus.groovy.runtime.callsite.pogometamethodsite$pogocachedmethodsiteNounwrapnocerce.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(方法。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(脚本字节码适配器)。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上。groovy:153)在org.codehaus.groovy.vmplugin.v7.indyinterface.selectmethod(indyinterface。java:234)在org.apache.tinkerpop.gremlin.console.console.main(console。groovy:466)原因:sun.reflect.nativeconstructoraccessorimpl.newinstance0(本机方法)位于sun.reflect.nativeconstructoraccessorimpl.newinstance(nativeconstructoraccessorimpl)。java:62)在sun.reflect.delegatingconstructoraccessorimpl.newinstance(delegatingconstructoraccessorimpl。java:45)在java.lang.reflect.constructor.newinstance(构造函数。java:423)在org.janusgraph.util.system.configurationutil.instantiate(configurationutil。java:58) ... 69更多原因:com.datastax.driver.core.exceptions.nohostavailableexception:在com.datastax.driver.core.exceptions.transportexception:[]:9042(com.datastax.driver.core.exceptions.transportexception:[]:9042]cannot connect)处尝试查询的所有主机都失败(尝试:[]:9042(com.datastax.driver.core.exceptions.transportexception:[]:9042]can。java:268)在com.datastax.driver.core.controlconnection.connect(控制连接。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(群集。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个以上

jvlzgdj9

jvlzgdj91#

所以我想出来了。
janusgraph文档说把集群中的一个节点作为
storage.hostname=[ip-address-of-one-cassandra-ec2-instance]
因为它不是形式,所以我认为它是数组语法
更换 [xx.xx.xx.xx]xx.xx.xx.xx 工作

相关问题