Janus Graph example-remotegraph Error: Unknown external index backend: jgex #3767
Unanswered
pallakartheekreddy
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working with JanusGraph0.6.3, and I want to use a Java(Java 11) client to connect the gremlin-server. I launched the server with below command
./bin/janusgraph-server.sh start
Output:
./bin/janusgraph-server.sh: line 211: /Library/Internet: No such file or directory SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/kartheek/Documents/Applications/janusgraph-full-0.6.3/lib/logback-classic-1.2.11.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/kartheek/Documents/Applications/janusgraph-full-0.6.3/lib/slf4j-reload4j-1.7.36.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 [ch.qos.logback.classic.util.ContextSelectorStaticBinder] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.codehaus.groovy.reflection.CachedClass (file:/Users/kartheek/Documents/Applications/janusgraph-full-0.6.3/lib/groovy-2.5.15-indy.jar) to method java.lang.Object.finalize() WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.reflection.CachedClass WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 12:48:41 WARN org.elasticsearch.client.RestClient - request [GET http://127.0.0.1:9200/] returned 1 warnings: [299 Elasticsearch-7.17.4-79878662c54c886ae89206c685d9f1051a9d6411 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."] 12:48:41 WARN org.elasticsearch.client.RestClient - request [GET http://127.0.0.1:9200/_cluster/health?timeout=30s&wait_for_status=yellow] returned 1 warnings: [299 Elasticsearch-7.17.4-79878662c54c886ae89206c685d9f1051a9d6411 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."] 12:48:41 WARN org.elasticsearch.client.RestClient - request [PUT http://127.0.0.1:9200/_cluster/settings] returned 1 warnings: [299 Elasticsearch-7.17.4-79878662c54c886ae89206c685d9f1051a9d6411 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."] 12:48:41 WARN org.elasticsearch.client.RestClient - request [GET http://127.0.0.1:9200/_scripts/janusgraph-add] returned 1 warnings: [299 Elasticsearch-7.17.4-79878662c54c886ae89206c685d9f1051a9d6411 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."] 12:48:41 WARN org.elasticsearch.client.RestClient - request [GET http://127.0.0.1:9200/_scripts/janusgraph-del] returned 1 warnings: [299 Elasticsearch-7.17.4-79878662c54c886ae89206c685d9f1051a9d6411 "Elasticsearch built-in security features are not enabled. Without authentication, your cluster could be accessible to anyone. See https://www.elastic.co/guide/en/elasticsearch/reference/7.17/security-minimal-setup.html to enable security."] 12:48:43 WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 serialization class is deprecated. 12:48:43 WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 serialization class is deprecated. 10/05/23, 12:51:36 PM ==========================================================
However, when I execute the example-remotegraph
mvn clean install
mvn exec:java -pl :example-remotegraph
I got an exception. Unknown external index backend: jgex
[INFO] Scanning for projects... [INFO] [INFO] -----------------< org.janusgraph:example-remotegraph >----------------- [INFO] Building Example-RemoteGraph: Example with RemoteGraph 0.6.3 [INFO] from pom.xml [INFO] --------------------------------[ jar ]--------------------------------- [WARNING] The artifact org.slf4j:slf4j-log4j12:jar:1.7.36 has been relocated to org.slf4j:slf4j-reload4j:jar:1.7.36 [INFO] [INFO] --- exec:3.1.0:java (default-cli) @ example-remotegraph --- 0 [org.janusgraph.example.RemoteGraphApp.main()] INFO org.janusgraph.example.RemoteGraphApp - fileName :/Users/kartheek/Documents/Applications/janusgraph-full-0.6.3/examples/example-remotegraph/conf/jgex-remote.properties 1 [org.janusgraph.example.RemoteGraphApp.main()] INFO org.janusgraph.example.RemoteGraphApp - opening graph 110 [org.janusgraph.example.RemoteGraphApp.main()] INFO org.apache.commons.beanutils.FluentPropertyBeanIntrospector - Error when creating PropertyDescriptor for public final void org.apache.commons.configuration2.AbstractConfiguration.setProperty(java.lang.String,java.lang.Object)! Ignoring this property. 546 [org.janusgraph.example.RemoteGraphApp.main()] INFO org.janusgraph.example.RemoteGraphApp - creating schema 807 [gremlin-driver-loop-2] INFO com.jcabi.manifests.Manifests - 0 attributes loaded from 102 stream(s) in 31ms, 63 saved, 1881 ignored: [] 941 [gremlin-driver-conn-scheduler-2] INFO org.apache.tinkerpop.gremlin.driver.Connection - Created new connection for ws://localhost:8182/gremlin 941 [gremlin-driver-conn-scheduler-1] INFO org.apache.tinkerpop.gremlin.driver.Connection - Created new connection for ws://localhost:8182/gremlin 941 [gremlin-driver-host-scheduler-1] INFO org.apache.tinkerpop.gremlin.driver.ConnectionPool - Opening connection pool on Host{address=localhost/127.0.0.1:8182, hostUri=ws://localhost:8182/gremlin} with core size of 2 WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.tinkerpop.shaded.kryo.util.UnsafeUtil (file:/Users/kartheek/.m2/repository/org/apache/tinkerpop/gremlin-shaded/3.5.5/gremlin-shaded-3.5.5.jar) to constructor java.nio.DirectByteBuffer(long,int,java.lang.Object) WARNING: Please consider reporting this to the maintainers of org.apache.tinkerpop.shaded.kryo.util.UnsafeUtil WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 1245 [org.janusgraph.example.RemoteGraphApp.main()] ERROR org.janusgraph.example.GraphApp - org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Unknown external index backend: jgex java.util.concurrent.CompletionException: org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Unknown external index backend: jgex at java.base/java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:412) at java.base/java.util.concurrent.CompletableFuture.join(CompletableFuture.java:2044) at org.apache.tinkerpop.gremlin.driver.ResultSet.one(ResultSet.java:123) at org.apache.tinkerpop.gremlin.driver.ResultSet$1.hasNext(ResultSet.java:175) at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132) at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497) at org.janusgraph.example.RemoteGraphApp.createSchema(RemoteGraphApp.java:188) at org.janusgraph.example.GraphApp.runApp(GraphApp.java:294) at org.janusgraph.example.RemoteGraphApp.main(RemoteGraphApp.java:196) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:279) at java.base/java.lang.Thread.run(Thread.java:829)
I have followed the guide correctly, how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions