Gremlin from titan 1.0.0 does not end on windows

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

but I got stuck in the first step by running gremlin:

>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 
+5
source share
1 answer

The solution found in this google group for this problem and much more:

to run gremlin, edit the gremlin.bat file:

Edit:

 set LIBDIR=..\lib 

To:

 set LIBDIR=lib 

Edit:

 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 features to gremlin command line:

in the gremlin.bat file add the line JAVA_OPTIONS (solution from the 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 finally change the log level: add a file called logback.xml to the titan-1.0.0-hadoop1 folder containing: (a 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> 
+6
source

Source: https://habr.com/ru/post/1235991/


All Articles