Titan无法实例化实现:CassandraThriftStoreManager

时间:2016-11-09 10:34:30

标签: titan

  

./ gremlin.sh

     

的gremlin> graph = TitanFactory.open(" ../ conf / titan-cassandra-es.properties")

然后发生错误:

  

无法实例化实施:

     

com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager       显示堆栈跟踪? [YN]

     

java.lang.IllegalArgumentException:无法实例化   执行:   com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager     在   com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:55)     在   com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:473)     在   com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:407)     在   com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration。(GraphDatabaseConfiguration.java:1320)     在   com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94)     在   com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:62)     在com.thinkaurelius.titan.core.TitanFactory $ open.call(未知   来源)at   org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110)     在   org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122)     在groovysh_evaluate.run(groovysh_evaluate:3)at   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在   org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69)     在   org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:185)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:119)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在   org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:94)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.super $ 2 $工作(InteractiveShellRunner.groovy)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)at   org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)     在groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)at   groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)at at   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)     在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在   org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:58)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.super $ 2 $运行(InteractiveShellRunner.groovy)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at   sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)     在   sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)     在java.lang.reflect.Method.invoke(Method.java:498)at   org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)     在groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324)at   groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207)at at   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130)     在   org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150)     在   org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:82)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在   。org.apache.tinkerpop.gremlin.console.Console(Console.groovy:144)     在   org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)     在   org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)   引起:java.lang.reflect.InvocationTargetException at   sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)     在   sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)     在   sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.lang.reflect.Constructor.newInstance(Constructor.java:423)     在   com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:44)     ... 45更多引起:   com.thinkaurelius.titan.diskstorage.TemporaryBackendException:   存储后端的临时故障   com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager.getCassandraPartitioner(CassandraThriftStoreManager.java:208)     在   com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager。(CassandraThriftStoreManager.java:186)     ... 50更多引起:   org.apache.thrift.transport.TTransportException:   java.net.SocketTimeoutException:connect time out out at   org.apache.thrift.transport.TSocket.open(TSocket.java:185)at at   org.apache.thrift.transport.TFramedTransport.open(TFramedTransport.java:81)     在   com.thinkaurelius.titan.diskstorage.cassandra.thrift.thriftpool.CTConnectionFactory.makeRawConnection(CTConnectionFactory.java:88)     在   com.thinkaurelius.titan.diskstorage.cassandra.thrift.thriftpool.CTConnectionFactory.makeObject(CTConnectionFactory.java:52)     在   com.thinkaurelius.titan.diskstorage.cassandra.thrift.thriftpool.CTConnectionFactory.makeObject(CTConnectionFactory.java:21)     在   org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1220)     在   com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager.getCassandraPartitioner(CassandraThriftStoreManager.java:205)     ... 51更多引起:java.net.SocketTimeoutException:连接定时   out at java.net.PlainSocketImpl.socketConnect(Native Method)at   java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)     在   java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)     在   java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)     在java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)at   java.net.Socket.connect(Socket.java:589)at   org.apache.thrift.transport.TSocket.open(TSocket.java:180)... 57   更

我的Cassandra集群和Elasticsearch集群都可以。启用了Thrift,并且必要的端口也是打开的。

任何帮助?

0 个答案:

没有答案