问题描述
我的Titan 1.0.0和cassandra 2.1.2安装程序在我的Linux上运行良好.当我开始使用gremlin时,
I have my Titan 1.0.0 and cassandra 2.1.2 setup running fine in my linux. When i start my gremlin using,
./gremlin.sh ../conf/gremlin-server/gremlin-server-cassandra-es.yaml
我收到以下错误:
\,,,/
(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:/home/ec2-user/titan/titan-1.0.0- hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ec2-user/titan/titan-1.0.0-hadoop1/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]
log4j:WARN No appenders could be found for logger (org.apache.hadoop.security.Groups).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.tinkergraph
==>10.253.11.125
==>8182
==>1
==>8
==>30000
==>30000
Exception in thread "main" groovy.lang.MissingPropertyException: No such property: com for class: groovysh_evaluate
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:51)
at org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:49)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:304)
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.tools.shell.Groovysh.execute(Groovysh.groovy:185)
at org.apache.tinkerpop.gremlin.console.Console.initializeShellWithScript(Console.groovy:290)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.<init>(Console.groovy:141)
at org.codehaus.groovy.vmplugin.v7.IndyInterface.selectMethod(IndyInterface.java:215)
at org.apache.tinkerpop.gremlin.console.Console.main(Console.groovy:303)
当我使用时,
./gremlin.sh
它运行了,但显示出一些错误.
It runs but shows me with some error.
\,,,/
(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:/home/ec2-user/titan/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/home/ec2-user/titan/titan-1.0.0-hadoop1/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]
log4j:WARN No appenders could be found for logger (org.apache.hadoop.security.Groups).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.tinkergraph
gremlin>
我希望将其连接到cassandra,所以我希望第一个命令起作用.我不明白那里的问题.
I want it to be connected to cassandra, so i want the first command to be working. I don't understand the issue there.
推荐答案
您正在启动Gremlin控制台,并告诉它加载并执行.yaml
文件的内容,由于该文件不是Groovy的,因此无法正常工作文件.使用./gremlin.sh
运行应该可以解决问题,但是...
You're starting the Gremlin console and telling it to load and execute the content of a .yaml
file, which won't work since it's not a Groovy file. Running with ./gremlin.sh
should do the trick, however...
...您似乎是从./bin
文件夹而不是Titan根./
文件夹启动Titan和Gremlin控制台.转到Titan根文件夹,并尝试使用以下命令启动Titan和控制台:
... you appear to be starting Titan and the Gremlin console from the ./bin
folder rather than the Titan root ./
folder. Go to Titan root folder and try starting both Titan and the Console with the following commands:
bin/titan.sh start
bin/gremlin.sh
如果您没有更改任何配置文件,则应该在默认的Titan v1.0.0安装中立即使用.要进行更多故障排除,请使用以下详细模式启动Titan:
If you didn't change any configuration file, this should work out of the box with the default Titan v1.0.0 install. To troubleshoot more, start Titan in verbose mode with:
bin/titan.sh start -v
要跟进您的评论,您似乎已经开始使用Titan(和TinkerPop)并融合了每个核心概念.您目前正在尝试配置高级设置.我建议您先熟悉TinkerPop和TinkerGraph(内存图中).对此感到满意之后,您可以尝试使用Titan,首先使用嵌入式Cassandra的单机设置(默认设置),然后使用远程Cassandra设置(您要实现的目标)进行实验.
To follow-up on your comment, it looks like you're getting started with Titan (and TinkerPop) and mixing some of the core concepts of each. You're currently trying to configure quite an advanced setup. I would recommend getting familiar with TinkerPop and TinkerGraph first (in-memory graph). Once you're comfortable with this, you can experiment with Titan, first with a single machine setup with Cassandra embedded (default setup), then with a remote Cassandra setup (what you're trying to achieve).
这篇关于连接到Cassandra时,Gremlin无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!