Reputation: 143
I am trying to use Gremlin query language for access data in ArcadeDB, but I am getting this error.
I've started Gremlin-Console and ArcadeDB in Docker
and trying to connect.
What am I doing wrong?
docker run --name arcade-db \
--rm -p 2480:2480 -p 2424:2424 -p 8182:8182 -p 6379:6379 -p 5432:5432 \
-e JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata
-Darcadedb.server.plugins=GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin
-Darcadedb.server.defaultDatabases=Imported[root]{import:https://github.com/ArcadeData/arcadedb-datasets/raw/main/orientdb/OpenBeer.gz}"\
-d arcadedata/arcadedb:22.8.1
dockerfile
for gremlin-console: FROM openjdk:8
ARG tinkerpopVersion
WORKDIR /opt
RUN wget https://www.apache.org/dist/tinkerpop/$tinkerpopVersion/apache-tinkerpop-gremlin-console-$tinkerpopVersion-bin.zip
RUN unzip ./apache-tinkerpop-gremlin-console-$tinkerpopVersion-bin.zip
WORKDIR /opt/apache-tinkerpop-gremlin-console-$tinkerpopVersion
COPY arcade-db-remote.yaml /opt/apache-tinkerpop-gremlin-console-$tinkerpopVersion
ENTRYPOINT ["bin/gremlin.sh"]
hosts: [localhost]
port: 8182
connectionPool: { enableSsl: false }
serializer: { className: org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1,
config: { serializeResultToString: true }}
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:716)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:750)
==>Configured localhost/127.0.0.1:8182, but host not presently available. The Gremlin Console will attempt to reconnect on each query submission, however, you may wish to close this remote and investigate the problem directly.
Upvotes: 3
Views: 329