-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Remote Console error: gremlin-groovy is not an available GremlinScriptEngine #3629
Replies: 2 comments · 4 replies
-
Please check the logs of the JanusGraph Server instance. It probably produced an error when starting which should tell you what the problem is. If you paste that log here (possibly redacted), then we can maybe help you find the root problem |
Beta Was this translation helpful? Give feedback.
All reactions
-
ubuntu@ubuntu:~/Downloads/janusgraph-full-0.5.3/bin$ ./gremlin-server.sh SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/ubuntu/Downloads/janusgraph-full-0.5.3/lib/slf4j-log4j12-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/ubuntu/Downloads/janusgraph-full-0.5.3/lib/logback-classic-1.1.3.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] 0 [main] INFO com.jcabi.manifests.Manifests - 114 attributes loaded from 273 stream(s) in 732ms, 114 saved, 3702 ignored: ["Agent-Class", "Ant-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Boot-Class-Path", "Branch", "Build-Date", "Build-Host", "Build-Id", "Build-Java-Version", "Build-Jdk", "Build-Jdk-Spec", "Build-Job", "Build-Number", "Build-Timestamp", "Build-Version", "Built-At", "Built-By", "Built-Date", "Built-OS", "Built-On", "Built-Status", "Bundle-ActivationPolicy", "Bundle-Activator", "Bundle-BuddyPolicy", "Bundle-Category", "Bundle-ClassPath", "Bundle-ContactAddress", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "CLDR-Version", "Can-Redefine-Classes", "Change", "Class-Path", "Copyright", "Created-By", "DSTAMP", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-ExtensibleAPI", "Embed-Dependency", "Embed-Transitive", "Export-Package", "Extension-Name", "Extension-name", "Fragment-Host", "Gradle-Version", "Gremlin-Lib-Paths", "Gremlin-Plugin-Dependencies", "Gremlin-Plugin-Paths", "Ignore-Package", "Implementation-Build", "Implementation-Build-Date", "Implementation-Title", "Implementation-URL", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "Java-Vendor", "Java-Version", "Main-Class", "Manifest-Version", "Maven-Version", "Module-Email", "Module-Origin", "Module-Owner", "Module-Source", "Multi-Release", "Originally-Created-By", "Os-Arch", "Os-Name", "Os-Version", "Package", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Bundle", "Require-Capability", "Scm-Connection", "Scm-Revision", "Scm-Url", "Specification-Title", "Specification-Vendor", "Specification-Version", "TODAY", "TSTAMP", "Time-Zone-Database-Version", "Tool", "X-Compile-Elasticsearch-Snapshot", "X-Compile-Elasticsearch-Version", "X-Compile-Lucene-Version", "X-Compile-Source-JDK", "X-Compile-Target-JDK", "hash", "implementation-version", "mode", "package", "service", "url", "version"] 5 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - 3.4.6
-----oOOo-(3)-oOOo----- 548 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Configuring Gremlin Server from /home/ubuntu/Downloads/janusgraph-full-0.5.3/conf/gremlin-server/gremlin-server.yaml 765 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager - Configured Metrics ConsoleReporter configured with report interval=180000ms 772 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager - Configured Metrics CsvReporter configured with report interval=180000ms to fileName=/tmp/gremlin-server-metrics.csv 1006 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager - Configured Metrics JmxReporter configured with domain= and agentId= 1013 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager - Configured Metrics Slf4jReporter configured with interval=180000ms and loggerName=org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics 1971 [main] INFO com.datastax.driver.core - DataStax Java driver 3.9.0 for Apache Cassandra 2000 [main] INFO com.datastax.driver.core.GuavaCompatibility - Detected Guava < 19 in the classpath, using legacy compatibility layer 2469 [main] INFO com.datastax.driver.core.ClockFactory - Using native clock to generate timestamps. 2672 [main] INFO com.datastax.driver.core.NettyUtil - Found Netty's native epoll transport in the classpath, using it 4092 [main] INFO com.datastax.driver.core.policies.DCAwareRoundRobinPolicy - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 4093 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.0.1:9042 added 4598 [main] WARN org.janusgraph.diskstorage.configuration.builder.ReadConfigurationBuilder - Local setting index.search.backend=lucene (Type: GLOBAL_OFFLINE) is overridden by globally managed value (elasticsearch). Use the ManagementSystem interface instead of the local configuration to control this setting. 6680 [main] INFO org.janusgraph.graphdb.idmanagement.UniqueInstanceIdRetriever - Generated unique-instance-id=7f0001016282-ubuntu1 6710 [main] INFO com.datastax.driver.core.ClockFactory - Using native clock to generate timestamps. 6999 [main] INFO com.datastax.driver.core.policies.DCAwareRoundRobinPolicy - Using data-center name 'datacenter1' for DCAwareRoundRobinPolicy (if this is incorrect, please provide the correct datacenter name with DCAwareRoundRobinPolicy constructor) 6999 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /127.0.0.1:9042 added 7045 [main] INFO org.janusgraph.diskstorage.Backend - Configuring index [search] 7959 [main] WARN org.janusgraph.diskstorage.es.rest.RestElasticSearchClient - Unable to determine Elasticsearch server version. Default to SEVEN. java.net.ConnectException: Connection refused
Caused by: java.net.ConnectException: Connection refused
7999 [main] WARN org.apache.tinkerpop.gremlin.server.GremlinServer - Graph [graph] configured at [conf/janusgraph-cql-lucene.properties] could not be instantiated and will not be available in Gremlin Server. GraphFactory message: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory] java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory]
Caused by: java.lang.reflect.InvocationTargetException
Caused by: java.lang.IllegalArgumentException: Could not instantiate implementation: org.janusgraph.diskstorage.es.ElasticSearchIndex
Caused by: java.lang.reflect.InvocationTargetException
Caused by: org.janusgraph.diskstorage.PermanentBackendException: Connection refused
Caused by: java.net.ConnectException: Connection refused
Caused by: java.net.ConnectException: Connection refused
8015 [main] INFO org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor - Initialized Gremlin thread pool. Threads in pool named with pattern gremlin-* 8237 [main] INFO org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor - Initialized GremlinExecutor and preparing GremlinScriptEngines instances. 16333 [gremlin-server-exec-1] WARN org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine - Script compilation // Copyright 2019 JanusGraph Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // an init script that returns a Map allows explicit setting of global bindings. def globals = [:] // defines a sample LifeCycleHook that prints some output to the Gremlin Server console. // note that the name of the key in the "global" map is unimportant. globals << [hook : [
] as LifeCycleHook] // define the default TraversalSource to bind queries to - this one will be named "g". globals << [g : graph.traversal()] took 5475ms 16581 [gremlin-server-exec-1] ERROR org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager - Could not create GremlinScriptEngine for gremlin-groovy java.lang.IllegalStateException: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script1
Caused by: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script1
Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script1
Caused by: groovy.lang.MissingPropertyException: No such property: graph for class: Script1
16592 [main] WARN org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor - Could not initialize gremlin-groovy GremlinScriptEngine as init script could not be evaluated java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: gremlin-groovy is not an available GremlinScriptEngine
Caused by: java.lang.IllegalArgumentException: gremlin-groovy is not an available GremlinScriptEngine
16609 [main] INFO org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the standard OpProcessor. 16631 [main] INFO org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the session OpProcessor. 16849 [main] INFO org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the traversal OpProcessor. 16884 [main] INFO org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor - Initialized cache for TraversalOpProcessor with size 1000 and expiration time of 600000 ms 16949 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - idleConnectionTimeout was set to 0 which resolves to 0 seconds when configuring this value - this feature will be disabled 16977 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - keepAliveInterval was set to 0 which resolves to 0 seconds when configuring this value - this feature will be disabled 17001 [main] WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 serialization class is deprecated. 17230 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v3.0+gryo with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 17233 [main] WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 serialization class is deprecated. 17234 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v3.0+gryo-stringd with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0 17335 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v3.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0 17337 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0 17345 [main] WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 serialization class is deprecated. 17351 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 17353 [main] WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0 serialization class is deprecated. 17370 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo-lite with org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0 17376 [main] WARN org.apache.tinkerpop.gremlin.server.AbstractChannelizer - The org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 serialization class is deprecated. 17376 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v1.0+gryo-stringd with org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0 17414 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v2.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0 17436 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0, change order of serialization configuration if this is not desired. 17465 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - Configured application/vnd.gremlin-v1.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0 17487 [main] INFO org.apache.tinkerpop.gremlin.server.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0, change order of serialization configuration if this is not desired. 17580 [gremlin-server-boss-1] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Gremlin Server configured with worker thread pool of 1, gremlin pool of 1 and boss thread pool of 1. 17581 [gremlin-server-boss-1] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Channel started at port 8182. 28/2/23 10:22:38 AM ============================================================ -- Gauges ---------------------------------------------------------------------- org.apache.tinkerpop.gremlin.server.GremlinServer.sessions
-- Meters ---------------------------------------------------------------------- org.apache.tinkerpop.gremlin.server.GremlinServer.errors
-- Timers ---------------------------------------------------------------------- org.apache.tinkerpop.gremlin.server.GremlinServer.op.eval
org.apache.tinkerpop.gremlin.server.GremlinServer.op.traversal
181011 [metrics-logger-reporter-thread-1] INFO org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics - type=GAUGE, name=org.apache.tinkerpop.gremlin.server.GremlinServer.sessions, value=0 181011 [metrics-logger-reporter-thread-1] INFO org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics - type=METER, name=org.apache.tinkerpop.gremlin.server.GremlinServer.errors, count=0, mean_rate=0.0, m1=0.0, m5=0.0, m15=0.0, rate_unit=events/second 181011 [metrics-logger-reporter-thread-1] INFO org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics - type=TIMER, name=org.apache.tinkerpop.gremlin.server.GremlinServer.op.eval, count=0, min=0.0, max=0.0, mean=0.0, stddev=0.0, median=0.0, p75=0.0, p95=0.0, p98=0.0, p99=0.0, p999=0.0, mean_rate=0.0, m1=0.0, m5=0.0, m15=0.0, rate_unit=events/second, duration_unit=milliseconds 181012 [metrics-logger-reporter-thread-1] INFO org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics - type=TIMER, name=org.apache.tinkerpop.gremlin.server.GremlinServer.op.traversal, count=0, min=0.0, max=0.0, mean=0.0, stddev=0.0, median=0.0, p75=0.0, p95=0.0, p98=0.0, p99=0.0, p999=0.0, mean_rate=0.0, m1=0.0, m5=0.0, m15=0.0, rate_unit=events/second, duration_unit=milliseconds i stared the cassandra server. then stared the gremlin server it shows started and when i start the gremlin console it shows this . i think connecttion is refused what i need to do |
Beta Was this translation helpful? Give feedback.
All reactions
-
647781 [gremlin-server-exec-1] ERROR org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager - Could not create GremlinScriptEngine for gremlin-groovy java.lang.IllegalStateException: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script2
Caused by: javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script2
Caused by: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: graph for class: Script2
Caused by: groovy.lang.MissingPropertyException: No such property: graph for class: Script2
647790 [gremlin-server-exec-1] WARN org.apache.tinkerpop.gremlin.server.op.AbstractEvalOpProcessor - Exception processing a script on request [RequestMessage{, requestId=b0a60ddc-1155-4a5e-8dc2-35286e77e8d6, op='eval', processor='', args={gremlin=g, userAgent=Gremlin Console/3.4.6, batchSize=64}}]. java.lang.IllegalArgumentException: gremlin-groovy is not an available GremlinScriptEngine
^C666078 [gremlin-server-shutdown] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down OpProcessor[] 666078 [gremlin-server-shutdown] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down OpProcessor[session] 666086 [gremlin-server-shutdown] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down OpProcessor[traversal] 666087 [gremlin-server-shutdown] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down thread pools. 668117 [gremlin-server-stop] INFO org.apache.tinkerpop.gremlin.server.GremlinServer - Gremlin Server - shutdown complete ubuntu@ubuntu:~/Downloads/janusgraph-full-0.5.3/bin$ here after i connect :remote console the i give 'g' . the server get shutting down an the logs are pasted here |
Beta Was this translation helpful? Give feedback.
All reactions
-
The problem here is that JanusGraph Server tries to connect to Elasticsearch, but this fails. Because of that, JanusGraph cannot open the graph and therefore not bind a graph traversal source Here is the relevant part of the server logs:
What I'm wondering however is this:
So your config file for JanusGraph is named If you want to use Elasticsearch, then you need to inspect your config in that If you don't want to use Elasticsearch, then you have probably started JanusGraph previously with a different config that included Elasticsearch as the index backend. The relevant config option here is |
Beta Was this translation helpful? Give feedback.
All reactions
-
I need to use lucene how to config
Can you just help me for connecting janusgraph with Cassandra db with
lucene indexing backend
…On Tue, 28 Feb, 2023, 1:23 pm Florian Hockmann, ***@***.***> wrote:
The problem here is that JanusGraph Server tries to connect to
Elasticsearch, but this fails. Because of that, JanusGraph cannot open the
graph and therefore not bind a graph traversal source g which leads to
the error you're seeing when you try to execute a traversal.
Here is the relevant part of the server logs:
7959 [main] WARN org.janusgraph.diskstorage.es.rest.RestElasticSearchClient - Unable to determine Elasticsearch server version. Default to SEVEN.
java.net.ConnectException: Connection refused
What I'm wondering however is this:
7999 [main] WARN org.apache.tinkerpop.gremlin.server.GremlinServer - Graph [graph] configured at [conf/janusgraph-cql-lucene.properties] could not be instantiated and will not be available in Gremlin Server. GraphFactory message: GraphFactory could not instantiate this Graph implementation [class org.janusgraph.core.JanusGraphFactory]
So your config file for JanusGraph is named
conf/janusgraph-cql-lucene.properties which indicates that you want to
use Lucene instead of Elasticsearch as the index backend? Is that correct?
Or is the name of this config file just wrong/misleading?
If you want to use Elasticsearch, then you need to inspect your config in
that .properties file regarding Elasticsearch and check why JanusGraph
cannot connect to Elasticsearch.
If you don't want to use Elasticsearch, then you have probably started
JanusGraph previously with a different config that included Elasticsearch
as the index backend. The relevant config option here is
index.search.backend which has the mutability level GLOBAL_OFFLINE. This
means that JanusGraph stores its config value in its storage backend (CQL
in your case) and it will ignore any changes made after that to the config
file for this option.
If this is the problem, then you can either use the management API to
change this global option
<https://docs.janusgraph.org/configs/#global-configuration> or maybe just
start with a fresh database if you don't already have important data in the
database (assuming that you're still in the set-up phase).
—
Reply to this email directly, view it on GitHub
<#3629 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AZH6LUHKL53VEJTWII6ELZDWZWVHNANCNFSM6AAAAAAVJOI7CY>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
All reactions
-
How to configure JanusGraph for Lucene as the index backend is described here. You basically just need these entries in your
But as I've said in my earlier comment, you apparently did already start JanusGraph with a configuration for Elasticsearch. You now either need to change that config (most importantly It's however a bit unusual to use Lucene together with Cassandra as Cassandra is a scalable storage backend whereas Lucene only works for a single-instance JanusGraph deployment. So, if you want to be able to scale JanusGraph, then Lucene isn't a good choice. Elasticsearch or Solr would be better choices in that case. |
Beta Was this translation helpful? Give feedback.
-
error is
Type ':help' or ':h' for help.
Display stack trace? [yN]y
java.lang.IllegalArgumentException: gremlin-groovy is not an available GremlinScriptEngine
i configured for connecting janusgraph with cassandra . cassandra and janusgraph server is running but when i check configuaration(is cql is connected) with the help of graph command
what i need to do
Beta Was this translation helpful? Give feedback.
All reactions