我用cassandra 2.1.2尝试Titan 1.0.0。
打开图表时,我一直得到一个很长的调试跟踪和来自gremlin的奇怪错误(使用TitanFactroy.open()):
...
17:54:36.551 [main] DEBUG cttgdatabase.StandardTitanGraph - 已安装的shutdown hook Thread [Thread-3,5,main] java.lang.Throwable:com.thinkaurelius.titan.graphdb.database中的Hook创建跟踪。 StandardTitanGraph。(StandardTitanGraph.java:156)[titan-core-1.0.0.jar:na] at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94)[titan-core-1.0.0。 jar:na] at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:74)[titan-core-1.0.0.jar:na] at com.ibm.titantest.graph.WriteToGraph.main(WriteToGraph .java:27)[classes /:na] 17:54:36.646 [pool-19-thread-1] DEBUG cttdiskstorage.log.kcvs.KCVSLog - MessagePuller配置为ReadMarker时间戳略早于读取延迟时间;等待时钟赶上17:54:41.650 [pool-19-thread-1] DEBUG cttdcCassandraTransaction - 创建CassandraTransaction @ 6e234a4a [read = QUORUM,write = QUORUM] 17:54:46.652 [pool-19-thread- 1] DEBUG cttdcCassandraTransaction - 创建CassandraTransaction @ 2c7b5ce [read = QUORUM,write = QUORUM]
通过在titan根文件夹中创建一个名为logback.xml的文件来管理以在gremlin控制台中修复它:
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<root level="WARN">
<appender-ref ref="STDOUT" />
</root>
</configuration>
(取自here)
的解决方案但是如何在从eclipse运行gremlin时解决它呢?