Skip to content

Define Schema and Indexes with Gremlin Server Plugin #1143

@David-N-Perkins

Description

@David-N-Perkins

ArcadeDB Version:

23.2.1
Was getting ClassNotFound errors same as #869 with all newer releases.

OS and JDK Version:

Running ArcadeDB using the docker image, arcadedata/arcadedb. Running local Gremlin client on MacOS with Zulu JDK 17.

Expected behavior

Able to define schemas and create indexes.

Actual behavior

I'm trying to use ArcadeDB with the Gremlin Server plugin and having trouble figuring out how to create indexes. I can connect with a Gremlin remote traversal and insert data without any issues. My issue is that all the ArcadeDB tools are unable to access the default 'graph' database. In the Studio UI, the graph database isn't listed, so I can't connect to it and run any commands. If I exec onto the container and run bin/console.sh, I get this error when I try to connect.

> connect graph

ERROR:
com.arcadedb.console.ConsoleException: Database appears locked by server
    at com.arcadedb.console.Console.checkDatabaseIsLocked(Console.java:831)
    at com.arcadedb.console.Console.executeConnect(Console.java:410)
    at com.arcadedb.console.Console.execute(Console.java:249)
    at com.arcadedb.console.Console.parse(Console.java:727)
    at com.arcadedb.console.Console.interactiveMode(Console.java:129)
    at com.arcadedb.console.Console.execute(Console.java:179)
    at com.arcadedb.console.Console.main(Console.java:142)

Then I tried using the Rest API, but it says the graph database doesn't exist.

$ curl -X GET --user root:playwithdata http://localhost:2480/api/v1/exists/graph

{ "result" : false}%

I can't find anything in the docs about modifying the schema or creating indexes with using the Gremlin server plugin.

Steps to reproduce

Run the ArcadeDB docker image:

docker run --rm --name arcadedb -p 2424:2424 -p 2480:2480 -p 8182:8182 \
       --env JAVA_OPTS="-Darcadedb.server.rootPassword=playwithdata -Darcadedb.server.plugins=GremlinServer:com.arcadedb.server.gremlin.GremlinServerPlugin" \
            arcadedata/arcadedb:23.2.1

Exec into the container and run the console:
docker exec -it arcadedb bin/console.sh

Attempt to connect to the graph database:
connect graph

Metadata

Metadata

Assignees

Labels

invalidThis doesn't seem rightwontfixThis will not be worked on

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions