来自titan 1.0.0的gremlin并未在Windows上立即可用 [英] gremlin from titan 1.0.0 is not running out of the box on windows
问题描述
我正在关注 http://s3.thinkaurelius Windows机器上的.com/docs/titan/1.0.0/getting-started.html 指南.
但是我在第一步中就陷入了困境,让gremlin运行:
but i'm getting stuck at the very first step, getting gremlin to run:
>bin\gremlin.bat
Error opening zip file or JAR manifest missing : ..\lib\jamm-0.3.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument
推荐答案
Found a solution in this google group for this issue and more:
要运行gremlin,请编辑gremlin.bat文件:
to run gremlin edit the gremlin.bat file:
更改:
set LIBDIR=..\lib
收件人:
set LIBDIR=lib
更改:
if "%CP%" == "" (
set CP=%LIBDIR%\%1
)else (
set CP=%CP%;%LIBDIR%\%1
)
收件人:
if "%CP%" == "" (
set CP=%1
)else (
set CP=%CP%;%1
)
还要在gremlin命令行中添加命令历史记录功能:
also, to add command history abilities to the gremlin command line:
在gremlin.bat文件中,将其添加到设置的JAVA_OPTIONS行(来自同一来源的解决方案):
in the gremlin.bat file add to the set JAVA_OPTIONS line (solution from same source):
set JAVA_OPTIONS=-Xms32m -Xmx512m -javaagent:%LIBDIR%\jamm-0.3.0.jar
添加:
set JAVA_OPTIONS=-Xms32m -Xmx512m -javaagent:%LIBDIR%\jamm-0.3.0.jar -Djline.terminal=none
最后,要更改日志级别: 在titan-1.0.0-hadoop1文件夹中添加一个名为logback.xml的文件,其中包含: (来自同一来源的解决方案)
and lastly, to change the loglevel: add a file named logback.xml in the titan-1.0.0-hadoop1 folder containing: (solution from the same source)
<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"> <!-- set loglevel here-->
<appender-ref ref="STDOUT" />
</root>
</configuration>
这篇关于来自titan 1.0.0的gremlin并未在Windows上立即可用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!