gremlin from titan 1.0.0 is not running out of the box on windows

爱⌒轻易说出口 提交于 2020-01-02 05:20:07

问题


I'm following the http://s3.thinkaurelius.com/docs/titan/1.0.0/getting-started.html guide on my windows machine.

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

回答1:


Found a solution in this google group for this issue and more:

to run gremlin edit the gremlin.bat file:

Change:

set LIBDIR=..\lib

To:

set LIBDIR=lib

Change:

if "%CP%" == "" (
set CP=%LIBDIR%\%1
)else (
set CP=%CP%;%LIBDIR%\%1
)

To:

if "%CP%" == "" (
set CP=%1
)else (
set CP=%CP%;%1
)

also, to add command history abilities to the gremlin command line:

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

add:

set JAVA_OPTIONS=-Xms32m -Xmx512m -javaagent:%LIBDIR%\jamm-0.3.0.jar -Djline.terminal=none

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>


来源:https://stackoverflow.com/questions/33719843/gremlin-from-titan-1-0-0-is-not-running-out-of-the-box-on-windows

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!