errors with gremlin server and gremlin command line tutorial

1,017 views
Skip to first unread message

Corey Smaller

unread,
May 20, 2015, 3:23:53 PM5/20/15
to gremli...@googlegroups.com
Im following this tutorial

from the gremlin.sh  command line it connects fine :

gremlin> :remote connect tinkerpop.server conf/remote.yaml

==>Connected - localhost/127.0.0.1:8182

but when i try to add anything to the graph :

gremlin> :> g.addVertex('name','steve')


it throws this error:  

WARN  org.apache.tinkerpop.gremlin.driver.MessageSerializer  - Response [UnpooledUnsafeDirectByteBuf(ridx: 136, widx: 136, cap: 136)] could not be deserialized by org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0.

WARN  org.apache.tinkerpop.gremlin.driver.MessageSerializer  - Response [UnpooledUnsafeDirectByteBuf(ridx: 102, widx: 102, cap: 102)] could not be deserialized by org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0.

Request timed out while processing - increase the timeout with the :remote command


and it either hangs or goes back to the gremlin console command line.   I can't find much on this anywhere online, much help is apprecaited


thanks










Stephen Mallette

unread,
May 20, 2015, 4:52:53 PM5/20/15
to gremli...@googlegroups.com
I'm not sure how you got your version of Titan 0.9.0-M1, but I'm guessing that you have some discrepancy between versions somewhere.  Did you download these two versions of M1:


I would expect them to work together.  This first release in M1 was really early for Titan on the TP3 API and was meant for users already familiar with the stack.  If you're new to Java coming from Ruby, learning graphs, learning TinkerPop, and then throwing early release Titan in the mix, you have much to digest.  I always like to suggest that newcomers get comfortable with TinkerPop first (prior to getting too deep into Titan).  TinkerGraph is a great way to just get everything running and have some early successes that you can feel good about.  Anywho, just a suggestion....

Titan 0.9.0-M2 should be releasing soon which should have a better packaging structure than what we had in M1 (where console and server packaging were separate).  I just built it a moment ago and it worked nicely with the documentation). Anyway, we're happy to help you along if you get stuck somewhere in your work.  Please let us know if the downloads above don't resolve your issue or if you run into more trouble elsewhere.

--
You received this message because you are subscribed to the Google Groups "Gremlin-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gremlin-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gremlin-users/16b7e519-ed74-4334-adb8-3442358d5daa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Corey Smaller

unread,
May 20, 2015, 5:12:54 PM5/20/15
to gremli...@googlegroups.com
thanks again Stephen.
i thought the latest was - 0.5.4   from here


and i had to patchwork things together.  Titans tutorial says the gremlin-server is bundled with the latest Titan (5.4) but it wasn't so i went the painful manual way and ran into things along the way

Actually, i am coming from java to ROR, new job, new IDE, graph DB is new to my RDB mind and i went from Windows to Mac.   FUN!  but that is why we do this i suppose.  right?  
So, you are my savior and because of you i wont be standing in an unemployment line or applying for PHP jobs.  Thanks!

Stephen Mallette

unread,
May 20, 2015, 5:29:20 PM5/20/15
to gremli...@googlegroups.com
To be sure I cleared up the versioning issue......

Titan 0.5.4 is the current "stable" version.  It is based on on TinkerPop 2.x.  You referenced that you were looking at this:


note that given that URL, those docs relate to Titan 0.9.0-M1.  you want:


Further note, that if you want docs related to TinkerPop, given usage of Titan 0.5.4, you will need to look at the individual TinkerPop project wikis in github and not the http://tinkerpop.com website which is already outfitted for TinkerPop 3.x.  Titan 0.9.0-M1 and future release in that line relate to the wholly redesigned TinkerPop 3.x, which has a whole new set of interfaces, features, etc.:


TinkerPop 3.0.0.M8 is the current "official" release but we are currently working on 3.0.0.M9.  And here's where the final bit of confusion lies: Titan 0.9.0-M1 uses TinkerPop 3.0.0.M6 (which is mighty old).  Titan 0.9.0-M2 will rely on the latest and greatest TinkerPop 3.0.0.M9 when it releases in the coming week or so.  If you build the titan09 branch from GitHub it currently works with an early release candidate of 3.0.0.M9.

Soooooo....short answer - versions matter and need to match up appropriately. 

HTH,

Stephen



Derek Williams

unread,
May 20, 2015, 5:35:55 PM5/20/15
to gremli...@googlegroups.com
Such an exciting week for Stephan!  Thanks for the update.


For more options, visit https://groups.google.com/d/optout.



--
Derek Williams
Cell: 970.214.8928

Corey Smaller

unread,
May 20, 2015, 6:25:19 PM5/20/15
to gremli...@googlegroups.com
server started with errors but it still ran my queries. maybe this will help you guys. heres the stack trace

Coreys-MBP:titan-server-0.9.0-M1 coreysmaller$ bin/gremlin-server.sh

[INFO] GremlinServer - 

         \,,,/

         (o o)

-----oOOo-(3)-oOOo-----


[INFO] GremlinServer - Configuring Gremlin Server from conf/gremlin-server.yaml

[INFO] MetricManager - Configured Metrics ConsoleReporter configured with report interval=180000ms

[INFO] MetricManager - Configured Metrics CsvReporter configured with report interval=180000ms to fileName=/tmp/gremlin-server-metrics.csv

[INFO] MetricManager - Configured Metrics JmxReporter configured with domain= and agentId=

[INFO] MetricManager - Configured Metrics Slf4jReporter configured with interval=180000ms and loggerName=com.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics

[INFO] ReflectiveConfigOptionLoader - Loaded and initialized config classes: 11 OK out of 12 attempts in Duration[45 ms]

[INFO] Reflections - Reflections took 54 ms to scan 1 urls, producing 0 keys and 0 values 

[INFO] BasicConfiguration - Ignored configuration entry for gremlin.graph since it does not map to an option

java.lang.IllegalArgumentException: Unknown configuration element in namespace [root]: gremlin

at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120)

at com.thinkaurelius.titan.diskstorage.configuration.ConfigElement.parse(ConfigElement.java:170)

at com.thinkaurelius.titan.diskstorage.configuration.BasicConfiguration.getAll(BasicConfiguration.java:80)

at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1303)

at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:91)

at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:71)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:57)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:80)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:96)

at com.tinkerpop.gremlin.server.Graphs.lambda$new$10(Graphs.java:29)

at com.tinkerpop.gremlin.server.Graphs$$Lambda$15/1151755506.accept(Unknown Source)

at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:663)

at com.tinkerpop.gremlin.server.Graphs.<init>(Graphs.java:27)

at com.tinkerpop.gremlin.server.GremlinServer.initializeGremlinExecutor(GremlinServer.java:121)

at com.tinkerpop.gremlin.server.GremlinServer.run(GremlinServer.java:74)

at com.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:176)

[INFO] BasicConfiguration - Ignored configuration entry for gremlin.graph since it does not map to an option

java.lang.IllegalArgumentException: Unknown configuration element in namespace [root]: gremlin

at com.google.common.base.Preconditions.checkArgument(Preconditions.java:120)

at com.thinkaurelius.titan.diskstorage.configuration.ConfigElement.parse(ConfigElement.java:170)

at com.thinkaurelius.titan.diskstorage.configuration.BasicConfiguration.getAll(BasicConfiguration.java:80)

at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.<init>(GraphDatabaseConfiguration.java:1316)

at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:91)

at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:71)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:497)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:57)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:80)

at com.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:96)

at com.tinkerpop.gremlin.server.Graphs.lambda$new$10(Graphs.java:29)

at com.tinkerpop.gremlin.server.Graphs$$Lambda$15/1151755506.accept(Unknown Source)

at java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:663)

at com.tinkerpop.gremlin.server.Graphs.<init>(Graphs.java:27)

at com.tinkerpop.gremlin.server.GremlinServer.initializeGremlinExecutor(GremlinServer.java:121)

at com.tinkerpop.gremlin.server.GremlinServer.run(GremlinServer.java:74)

at com.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:176)

[INFO] GraphDatabaseConfiguration - Set cluster.partition=false from store features

[INFO] GraphDatabaseConfiguration - Set default timestamp provider MICRO

[INFO] GraphDatabaseConfiguration - Generated unique-instance-id=0a00e3493514-Coreys-MBP1

[INFO] Backend - Initiated backend operations thread pool of size 16

[INFO] KCVSLog$MessagePuller - Loaded unidentified ReadMarker start time Timepoint[1432159681767000 μs] into com.thinkaurelius.titan.diskstorage.log.kcvs.KCVSLog$MessagePuller@b2c5e07

[INFO] Graphs - Graph [g] was successfully configured via [conf/titan-berkeleydb.properties].

[INFO] GremlinServer - Initialized Gremlin thread pool.  Threads in pool named with pattern gremlin-*

[INFO] ScriptEngines - Loaded nashorn ScriptEngine

[INFO] ScriptEngines - Loaded gremlin-groovy ScriptEngine

[INFO] GremlinServer - Initialized GremlinExecutor and configured ScriptEngines.

[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+kryo with com.tinkerpop.gremlin.driver.ser.KryoMessageSerializerV1d0

[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+kryo-stringd with com.tinkerpop.gremlin.driver.ser.KryoMessageSerializerV1d0

[INFO] AbstractChannelizer - Configured application/vnd.gremlin-v1.0+json with com.tinkerpop.gremlin.driver.ser.JsonMessageSerializerGremlinV1d0

[INFO] AbstractChannelizer - Configured application/json with com.tinkerpop.gremlin.driver.ser.JsonMessageSerializerV1d0

[INFO] GremlinServer - Gremlin Server configured with worker thread pool of 1 and boss thread pool of 1

[INFO] GremlinServer - Channel started at port 8182.

5/20/15 4:11:00 PM =============================================================

Jason Plurad

unread,
May 21, 2015, 1:15:32 PM5/21/15
to gremli...@googlegroups.com
The warning you're seeing is harmless, and it is resolved in the titan09 branch if you build it.
java.lang.IllegalArgumentException: Unknown configuration element in namespace [root]: gremlin

This message shows that your graph was loaded fine:
[INFO] Graphs - Graph [g] was successfully configured via [conf/titan-berkeleydb.properties].

I'm definitely looking forward to Titan 0.9.0-M2... it has been a long wait. Keep up the good work!
Reply all
Reply to author
Forward
0 new messages