I don't know where things on your end are not aligned. I was able to successfully connect using the configuration provided. I imagine that the issue is not in the server config since you are connecting to it via python. Configuration and steps provided below.
diff -ruw apache-tinkerpop-gremlin-server-3.2.7/conf/gremlin-server.yaml apache-tinkerpop-gremlin-server-3.2.7-test/conf/gremlin-server.yaml
--- apache-tinkerpop-gremlin-server-3.2.7/conf/gremlin-server.yaml 2017-12-15 07:37:22.000000000 -0500
+++ apache-tinkerpop-gremlin-server-3.2.7-test/conf/gremlin-server.yaml 2017-12-28 11:12:01.546613096 -0500
@@ -20,7 +20,8 @@
scriptEvaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
graphs: {
- graph: conf/tinkergraph-empty.properties}
+ graph: conf/tinkergraph-empty.properties,
+ CLgraph: conf/clgraph.properties}
plugins:
- tinkerpop.tinkergraph
scriptEngines: {
diff -ruw apache-tinkerpop-gremlin-server-3.2.7/scripts/empty-sample.groovy apache-tinkerpop-gremlin-server-3.2.7-test/scripts/empty-sample.groovy
--- apache-tinkerpop-gremlin-server-3.2.7/scripts/empty-sample.groovy 2017-02-13 10:24:42.000000000 -0500
+++ apache-tinkerpop-gremlin-server-3.2.7-test/scripts/empty-sample.groovy 2017-12-28 11:20:27.380347558 -0500
@@ -37,4 +37,4 @@
] as LifeCycleHook]
// define the default TraversalSource to bind queries to - this one will be named "g".
-globals << [g : graph.traversal()]
+globals << [g : graph.traversal(), CL : CLgraph.traversal()]
I'm using a packaged graphson file.
conf/clgraph.properties:
gremlin.graph=org.apache.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph
gremlin.tinkergraph.vertexIdManager=LONG
gremlin.tinkergraph.graphLocation=data/tinkerpop-classic.json
gremlin.tinkergraph.graphFormat=graphson
Assuming you are using the default remote.yaml, no configuration necessary in gremlin-console since you're connecting via remote string and not actually using remote-graph.properties.
conf/remote.yaml:
hosts: [localhost]
port: 8182
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config: { serializeResultToString: true }}
I start the server and can see both graphs and traversals are bound. Again, you shouldn't have problem here since you can see them via python.
[...]
[INFO] DefaultGraphManager - Graph [graph] was successfully configured via [conf/tinkergraph-empty.properties].
[INFO] DefaultGraphManager - Graph [CLgraph] was successfully configured via [conf/clgraph.properties].
[...]
[INFO] ServerGremlinExecutor - A GraphTraversalSource is now bound to [g] with graphtraversalsource[tinkergraph[vertices:0 edges:0], standard]
[INFO] ServerGremlinExecutor - A GraphTraversalSource is now bound to [CL] with graphtraversalsource[tinkergraph[vertices:6 edges:6], standard]
I start gremlin console and can see the CLgraph and CL traversal.
gremlin> :remote connect tinkerpop.server conf/remote.yaml
gremlin> :> CL.V()
==>v[1]
==>v[2]
==>v[3]
==>v[4]
==>v[5]
==>v[6]
gremlin> :> CLgraph.traversal().V()
==>v[1]
==>v[2]
==>v[3]
==>v[4]
==>v[5]
==>v[6]
Hope you find your problem.