FileNotFoundException с Титаном (титан-все)

Я пытаюсь настроить базовый пример Титана. Следуя документам, я попытался запустить bin/gremlin-server.sh -i com.thinkaurelius.titan titan-all 1.0.0, который выбрасывает;

Could not install the dependency: java.io.FileNotFoundException: /usr/share/titan/ext/titan-all/plugin/titan-all-1.0.0.jar (No such file or directory)
java.lang.RuntimeException: java.io.FileNotFoundException: /usr/share/titan/ext/titan-all/plugin/titan-all-1.0.0.jar (No such file or directory)
    at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
    at org.apache.tinkerpop.gremlin.groovy.util.DependencyGrabber.getAdditionalDependencies(DependencyGrabber.groovy:165)
    at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
    at org.apache.tinkerpop.gremlin.groovy.util.DependencyGrabber.copyDependenciesToPath(DependencyGrabber.groovy:99)
    at org.apache.tinkerpop.gremlin.server.util.GremlinServerInstall.main(GremlinServerInstall.java:38)
Caused by: java.io.FileNotFoundException: /usr/share/titan/ext/titan-all/plugin/titan-all-1.0.0.jar (No such file or directory)
    at java.util.zip.ZipFile.open(Native Method)
    at java.util.zip.ZipFile.<init>(ZipFile.java:219)
    at java.util.zip.ZipFile.<init>(ZipFile.java:149)
    at java.util.jar.JarFile.<init>(JarFile.java:166)
    at java.util.jar.JarFile.<init>(JarFile.java:130)
    at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
    at org.apache.tinkerpop.gremlin.groovy.util.DependencyGrabber.getAdditionalDependencies(DependencyGrabber.groovy:148)
    ... 3 more

Я также попробовал это из gremlin.sh;

root@ubuntu:/usr/share/titan# bin/gremlin.sh

         \,,,/
         (o o)
-----oOOo-(3)-oOOo-----
plugin activated: aurelius.titan
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/share/titan/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/share/titan/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
14:45:44 INFO  org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph  - HADOOP_GREMLIN_LIBS is set to: /usr/share/titan/lib
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.tinkergraph
gremlin> :install com.thinkaurelius.titan titan-all 1.0.0
==>java.io.FileNotFoundException: /usr/share/titan/ext/titan-all/plugin/titan-all-1.0.0.jar (No such file or directory)
gremlin> 

Я подтвердил, что у groovy есть файл;

root@ubuntu:/usr/share/titan# ls ~/.groovy/grapes/com.thinkaurelius.titan/titan-all/jars
titan-all-1.0.0.jar

Так что теперь я в тупике .. Кто-нибудь сталкивался с этим раньше?

EDIT: некоторые заметки о том, как я сюда попал..

Моей первой попыткой заставить это работать было использование всеобъемлющего zip-файла в соответствии с документацией... Я изменил gremlin-server.yaml на;

graph: conf/titan-cassandra-es.properties

Это бросило;

407  [main] WARN  org.apache.tinkerpop.gremlin.server.GremlinServer  - Graph [graph] configured at [conf/titan-cassandra-es.properties] could not be instantiated and will not be available in Gremlin Server.  GraphFactory message: Configuration must contain a valid 'gremlin.graph' setting
java.lang.RuntimeException: Configuration must contain a valid 'gremlin.graph' setting

Хорошо, простой поиск в Google говорит мне, что мне нужно добавить это в conf/titan-cassandra-es.properties;

gremlin.graph=com.thinkaurelius.titan.core.TitanFactory

В этот момент я получаю..

484  [main] WARN  org.apache.tinkerpop.gremlin.server.GremlinServer  - Graph [graph] configured at [conf/titan-cassandra-es.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]

Это наводит меня на мысль, что мне не хватает com.thinkaurelius.titan.core.TitanFactory. Что любопытно, поскольку $TITAN_HOME/lib на самом деле содержит titan-all-1.0.0.jar. Поэтому я предположил (возможно, ошибочно), что мне нужно запустить установку titan-all, чтобы она действительно загружала банки.


person XeroxDucati    schedule 25.10.2015    source источник


Ответы (2)


Базовая установка Titan — разархивировать titan-1.0.0-hadoop1.zip. Вот оно!

Загрузите его с http://titandb.io.

http://s3.thinkaurelius.com/docs/titan/1.0.0/getting-started.html

Он уже упакован с подключаемыми модулями Titan, поэтому вам не нужно устанавливать их в консоль Gremlin или сервер Gremlin.

Если вы хотите попробовать сервер Titan, есть готовый скрипт titan.sh, который автоматически запускает Cassandra и Elasticsearch с сервером.

http://s3.thinkaurelius.com/docs/titan/1.0.0/server.html#_getting_started

person Jason Plurad    schedule 26.10.2015
comment
Джейсон, только что ответил вам в списке, но обновляю свой вопрос здесь для других. - person XeroxDucati; 26.10.2015

Для тех, кто сталкивается с этой странностью, прочитайте всю трассировку стека. Оказывается, внизу, на самом деле, была реальная проблема; он не мог подключиться к Cassandra, потому что я не включил Thrift.

person XeroxDucati    schedule 26.10.2015