2016-10-17 9 views
1

내가 링크구현 인스턴스화 할 수 없습니다 : com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager

[https://github.com/thinkaurelius/titan/wiki/Downloads]

에서 타이탄을 다운로드를 내가 시작 titan.sh 사용 타이탄을 시작했다. 분기 카산드라 ... 가 실행 nodetool statusthrift ... OK (반환 종료 상태 0 및 인쇄 문자열 "실행") :

이있어.

Forking Elasticsearch... 
Connecting to Elasticsearch (127.0.0.1:9300)..... OK (connected to 127.0.0.1:9300). 
Forking Gremlin-Server... 
Connecting to Gremlin-Server (127.0.0.1:8182)..... OK (connected to 127.0.0.1:8182). 
Run gremlin.sh to connect. 

gremlin.sh를 사용하여 gremlin 쉘을 시작하면 gemlin 쉘이 시작되었습니다. 하지만 아래의 명령을 실행할 때, 난 다음 오류 ..

놈아> 그래프 TitanFactory.open = ('CONT/titan-cassandra-es.properties')

Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager 
Display stack trace? [yN] y 
java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager 
     at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:55) 
     at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:473) 
     at com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:407) 
     at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1320) 
     at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94) 
     at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:62) 
     at com.thinkaurelius.titan.core.TitanFactory$open.call(Unknown Source) 
     at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) 
     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:110) 
     at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:122) 
     at groovysh_evaluate.run(groovysh_evaluate:3) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.codehaus.groovy.tools.shell.Interpreter.evaluate(Interpreter.groovy:69) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.codehaus.groovy.tools.shell.Groovysh.execute(Groovysh.groovy:185) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.codehaus.groovy.tools.shell.Shell.leftShift(Shell.groovy:119) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.codehaus.groovy.tools.shell.ShellRunner.work(ShellRunner.groovy:94) 
     at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$work(InteractiveShellRunner.groovy) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:498) 
     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) 
     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) 
     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130) 
     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150) 
     at org.codehaus.groovy.tools.shell.InteractiveShellRunner.work(InteractiveShellRunner.groovy:123) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.codehaus.groovy.tools.shell.ShellRunner.run(ShellRunner.groovy:58) 
     at org.codehaus.groovy.tools.shell.InteractiveShellRunner.super$2$run(InteractiveShellRunner.groovy) 
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
     at java.lang.reflect.Method.invoke(Method.java:498) 
     at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) 
     at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:324) 
     at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1207) 
     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:130) 
     at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuper0(ScriptBytecodeAdapter.java:150) 
     at org.codehaus.groovy.tools.shell.InteractiveShellRunner.run(InteractiveShellRunner.groovy:82) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:144) 
     at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215) 
     at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303) 
Caused by: java.lang.reflect.InvocationTargetException 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) 
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) 
     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 
     at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 
     at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:44) 
     ... 46 more 
Caused by: com.thinkaurelius.titan.diskstorage.TemporaryBackendException: Temporary failure in storage backend 
     at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager.getCassandraPartitioner(CassandraThriftStoreManager.java:208) 
     at com.thinkaurelius.titan.diskstorage.cassandra.thrift.CassandraThriftStoreManager.<init>(CassandraThriftStoreManager.java:186) 
     ... 51 more 

어느 한 경우있어

그렘린 서버 로그 :

내가 어떤 구성이

업데이트 1을 변경 놓친 경우 알려주세요 이것에 대해 알고

24245 [main] WARN org.apache.tinkerpop.gremlin.server.GremlinServer - Graph [graph] configured at [conf/gremlin-server/titan-berkeleyje-server.properties] could not be instantiated and will not be available in Gremlin Server. GraphFactory message: GraphFactory could not instantiate this Graph implementation [class com.thinkaurelius.titan.core.TitanFactory] java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class com.thinkaurelius.titan.core.TitanFactory] at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:82) at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:70) at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:104) at org.apache.tinkerpop.gremlin.server.GraphManager.lambda$new$27(GraphManager.java:50) at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:671) at org.apache.tinkerpop.gremlin.server.GraphManager.<init>(GraphManager.java:48) at org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:94) at org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:88) at org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:290) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:78) ... 8 more Caused by: java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:55) at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:473) at com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:407) at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1320) at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94) at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:74) ... 13 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:44) ... 18 more Caused by: com.thinkaurelius.titan.diskstorage.TemporaryBackendException: Temporary failure in storage backend at com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:572) at com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.<init>(AstyanaxStoreManager.java:291) ... 23 more Caused by: com.netflix.astyanax.connectionpool.exceptions.PoolTimeoutException: PoolTimeoutException: [host=127.0.0.1(127.0.0.1):9160, latency=10005(10005), attempts=1]Timed out waiting for connection at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.waitForConnection(SimpleHostConnectionPool.java:231) at com.netflix.astyanax.connectionpool.impl.SimpleHostConnectionPool.borrowConnection(SimpleHostConnectionPool.java:198) at com.netflix.astyanax.connectionpool.impl.RoundRobinExecuteWithFailover.borrowConnection(RoundRobinExecuteWithFailover.java:84) at com.netflix.astyanax.connectionpool.impl.AbstractExecuteWithFailoverImpl.tryOperation(AbstractExecuteWithFailoverImpl.java:117) at com.netflix.astyanax.connectionpool.impl.AbstractHostPartitionConnectionPool.executeWithFailover(AbstractHostPartitionConnectionPool.java:352) at com.netflix.astyanax.thrift.ThriftClusterImpl.executeSchemaChangeOperation(ThriftClusterImpl.java:146) at com.netflix.astyanax.thrift.ThriftClusterImpl.internalCreateKeyspace(ThriftClusterImpl.java:321) at com.netflix.astyanax.thrift.ThriftClusterImpl.addKeyspace(ThriftClusterImpl.java:294) at com.thinkaurelius.titan.diskstorage.cassandra.astyanax.AstyanaxStoreManager.ensureKeyspaceExists(AstyanaxStoreManager.java:567) ... 24 more 
+0

흠, 업데이트 1은 'cassandra.log'에서 왔다고하지만, 당신은'cassandra.log'에서 그 스택 추적을 찾을 수 없습니다. 이것은'gremlin-server.log'의 스택 추적입니다. –

답변

1

Cassandra 클러스터/노드가 올바르게 실행되지 않는 것 같습니다. 나는 titan.sh을 한번도 사용하지 못했지만 아마도 카산드라가 깨끗하게 부팅하고 있는지 확인하려고합니다.

+0

나는 cassandra가 실행되고 있지 않다는 것을 알 수 있습니다. cassandra 포트에서 실행중인 프로세스를 확인하면 아무 것도 표시되지 않습니다.이 문제를 해결하는 방법은 무엇입니까 ?? – Ahi

+1

cassandra가 시작되지 않았고 cassandra 로그에 오류가 표시 될 수 있습니다. – Ahi

1

로그 파일의 메시지는 Gremlin 서버가 conf/gremlin-server/titan-berkeleyje-server.properties에 구성된 그래프를 인스턴스화하려했음을 나타냅니다. 이것은 아마도 gremlin-server.yaml 파일에 graphs->graph 아래에 구성되어있을 것입니다.

이미 질문에서 conf/titan-cassandra-es.properties에 구성된 그래프를 사용하고 싶다고 명시하셨습니다. 따라서 gremlin-server.yaml에서 변경하십시오.

+0

동일한 오류가 발생하는 속성 파일을 변경했습니다 ... 어떤 생각입니까? ?? – Ahi

+0

gremlin 서버는'conf/gremlin-server/titan-berkeleyje-server.properties' 파일로 변경했지만'conf/gremlin-server/titan-berkeleyje-server.properties'를 사용하려고하는 로그를 여전히 사용하고 있습니까? 그리고 구성을 변경 한 후에 다시 시작 했습니까? –

+0

예. 다시 시작했는데, centos VM에서이 작업을하고 있습니다. 다른 VM에서도 동일한 설정을했는데 완벽하게 작동합니다. 시스템에이 설정이있을 것입니다. – Ahi