This might be a bit out of the scope for this repo but I you might be able to guide me.
docker exec -it mytitan bin/gremlin.sh
Sep 07, 2015 7:00:44 PM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
plugin activated: aurelius.titan
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/titan-0.9.0-SNAPSHOT-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/titan-0.9.0-SNAPSHOT-hadoop1/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
19:01:02 INFO org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph - HADOOP_GREMLIN_LIBS is set to: /opt/titan-0.9.0-SNAPSHOT-hadoop1/lib
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.tinkergraph
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Connected - localhost/127.0.0.1:8182
gremlin> :> graph.addVertex("name", "stephen")
==>v[4096]
gremlin> :> g.V().values('name')
==>stephen
But I am not able to connect to the server (using web socket) via the node.js library for gremlin:
git clone https://github.com/oren/titan.git
cd titan
docker-compose up
npm install
node get-all.js
Error:
{ [Error: socket hang up]
code: 'ECONNRESET',
target:
{ domain: null,
_events:
{ open: [Object],
error: [Object],
message: [Object],
close: [Object] },
_eventsCount: 4,
_maxListeners: undefined,
_socket: null,
_ultron: null,
_closeReceived: false,
bytesReceived: 0,
readyState: 0,
supports: { binary: true },
extensions: {},
_isServer: false,
url: 'ws://localhost:8182',
protocolVersion: 13
}
}