ConfiguredGraphFactory not working as expected #2491
Replies: 12 comments 10 replies
-
What happens if you remove the all graphs that are not ConfigurationManagementGraph in the gremlin-server.yaml and test your steps again? |
Beta Was this translation helpful? Give feedback.
-
Hi Jan,
I tried removing all the files in gremlin-server.yaml, still I face the
same issue. Tried the following commands regarding JanusGraphManagerUtility.
getInstance().
bin/gremlin.sh
gremlin> JanusGraphManagerUtility.getInstance()
==>null
Request you help me to resolve the issue.
Thanks & Regards,
Vinayak
…On Mon, Mar 1, 2021 at 1:41 PM Jan Jansen ***@***.***> wrote:
What happens if you remove the all graphs that are not
ConfigurationManagementGraph in the gremlin-server.yaml and test your steps
again?
Could you call JanusGraphManagerUtility.getInstance()? Does it fails?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKQ5SW2A6CKL7HYSWUDTBND3XANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi Jan,
Executed the following steps:
1. cd janusgraph-full-0.5.2
2. bin/gremlin-server.sh conf/gremlin-server/gremlin-server.yaml
3. bin/gremlin.sh
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/127.0.0.1:8182
-[cc0eeb36-cf21-4407-88d6-a53b20c160ed]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server -
[localhost/127.0.0.1:8182]-[cc0eeb36-cf21-4407-88d6-a53b20c160ed] - type
':remote console' to return to local mode
gremlin> ConfiguredGraphFactory.getGraphNames()
Please add a key named "ConfigurationManagementGraph" to the "graphs"
property in your YAML file and restart the server to be able to use the
functionality of the ConfigurationManagementGraph class.
Type ':help' or ':h' for help.
Display stack trace? [yN]nn
gremlin> JanusGraphManagerUtility.getInstance()
No such property: JanusGraphManagerUtility for class: Script19
Type ':help' or ':h' for help.
Display stack trace? [yN]n
gremlin> JanusGraphManagerUtility.getInstance()
No such property: JanusGraphManagerUtility for class: Script19
Type ':help' or ':h' for help.
Display stack trace? [yN]
Still facing the same issue.
Thanks & Regards,
Vinayak
…On Mon, Mar 1, 2021 at 3:41 PM Jan Jansen ***@***.***> wrote:
https://docs.janusgraph.org/changelog/#gremlin-server-distributed-with-the-release-uses-inmemory-storage-backend-and-no-search-backend-by-default
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKRVISD5OMUIZH6J3RLTBNR5BANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi Jan,
Creating dynamic graphs using ConfiguredGraphFactory is also not working.
How can we solve the problem? Request you to help me to solve the issue.
Thanks & Regards,
Vinayak
…On Mon, Mar 1, 2021 at 3:59 PM Jan Jansen ***@***.***> wrote:
ConfiguredGraphFactory.getGraphNames() this will not work, if
JanusGraphManagerUtility.getInstance() is not return a JanusGraphManager.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKUI3A2ENRZTT3N34UTTBNUBHANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
Hi Jan,
Executed the following steps:
bin/janusgraph.sh start
Forking Cassandra...
Running `nodetool statusthrift`.. OK (returned exit status 0 and printed
string "running").
Forking Elasticsearch...
Connecting to Elasticsearch (127.0.0.1:9200)..... OK (connected to
127.0.0.1:9200).
Forking Gremlin-Server...
Connecting to Gremlin-Server (127.0.0.1:8182)...... OK (connected to
127.0.0.1:8182).
Run gremlin.sh to connect.
bin/janusgraph.sh status
Gremlin-Server (org.apache.tinkerpop.gremlin.server.GremlinServer) is
running
Elasticsearch (org.elasticsearch.bootstrap.Elasticsearch) is running
Cassandra (org.apache.cassandra.service.CassandraDaemon) is running
bin/gremlin.sh
gremlin> JanusGraphManagerUtility.getInstance()
==>null
gremlin-server.logs last some lines
180182 [metrics-logger-reporter-thread-1] INFO
org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics -
type=GAUGE,
name=org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.request-count,
value=4
180182 [metrics-logger-reporter-thread-1] INFO
org.apache.tinkerpop.gremlin.server.Settings$Slf4jReporterMetrics -
type=GAUGE,
name=org.apache.tinkerpop.gremlin.server.GremlinServer.gremlin-groovy.sessionless.class-cache.total-load-time,
value=1522679208
180182 [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
180183 [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
180183 [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=2, min=67.60666599999999, max=161.125745, mean=114.36620549999999,
stddev=66.12797493122045, median=114.36620549999999, p75=161.125745,
p95=161.125745, p98=161.125745, p99=161.125745, p999=161.125745,
mean_rate=0.011622736354412595, m1=0.0026343824142667106,
m5=0.004010584968292786, m15=0.0018758839152420489,
rate_unit=events/second, duration_unit=milliseconds
180183 [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
Thanks & Regards,
Vinayak
…On Mon, Mar 1, 2021 at 4:51 PM Jan Jansen ***@***.***> wrote:
Could give me the output of JanusGraphManagerUtility without executing any
function of the class CFG before?
It would also helpful to get the log output of the gremlin server.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKSBFG7BD5V4SBBQDP3TBN2EPANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/127.0.0.1:8182
-[a924fe63-ef90-49b2-b21b-f788b0aef0ac]
gremlin> JanusGraphManagerUtility.getInstance()
==>null
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server -
[localhost/127.0.0.1:8182]-[a924fe63-ef90-49b2-b21b-f788b0aef0ac] - type
':remote console' to return to local mode
gremlin> JanusGraphManagerUtility.getInstance()
No such property: JanusGraphManagerUtility for class: Script7
Type ':help' or ':h' for help.
Display stack trace? [yN]
First few lines are as follows:
1 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer -
3.4.6^M
\,,,/^M
(o o)^M
-----oOOo-(3)-oOOo-----^M
88 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer -
Configuring Gremlin Server from
janusgraph-full-0.5.2/conf/gremlin-server/gremlin-server.yaml
155 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics ConsoleReporter configured with report interval=180000ms
156 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics CsvReporter configured with report interval=180000ms to
fileName=/tmp/gremlin-server-metrics.csv
201 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics JmxReporter configured with domain= and agentId=
202 [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
499 [main] INFO com.datastax.driver.core - DataStax Java driver 3.9.0
for Apache Cassandra
516 [main] INFO com.datastax.driver.core.GuavaCompatibility - Detected
Guava < 19 in the classpath, using legacy compatibility layer
660 [main] INFO com.datastax.driver.core.ClockFactory - Using native
clock to generate timestamps.
738 [main] INFO com.datastax.driver.core.NettyUtil - Found Netty's
native epoll transport in the classpath, using it
875 [main] ERROR
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor - Could not
invoke constructor on class
org.janusgraph.graphdb.management.JanusGraphManager (defined by the
'graphManager' setting) with one argument of class Settings
3895 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the standard
OpProcessor.
3896 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the session
OpProcessor.
3962 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.op.OpLoader - Adding the traversal
OpProcessor.
3962 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down
OpProcessor[]
3962 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down
OpProcessor[session]
3963 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down
OpProcessor[traversal]
3963 [gremlin-server-shutdown] INFO
org.apache.tinkerpop.gremlin.server.GremlinServer - Shutting down thread
pools
0 [main] INFO com.jcabi.manifests.Manifests - 114 attributes loaded
from 272 stream(s) in 102ms, 114 saved, 3699 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"]
1 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer -
3.4.6^M
\,,,/^M
(o o)^M
-----oOOo-(3)-oOOo-----^M
86 [main] INFO org.apache.tinkerpop.gremlin.server.GremlinServer -
Configuring Gremlin Server from
conf/gremlin-server/gremlin-server-cql-es.yaml
142 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics ConsoleReporter configured with report interval=180000ms
143 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics CsvReporter configured with report interval=180000ms to
fileName=/tmp/gremlin-server-metrics.csv
189 [main] INFO org.apache.tinkerpop.gremlin.server.util.MetricManager -
Configured Metrics JmxReporter configured with domain= and agentId=
190 [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
487 [main] INFO com.datastax.driver.core - DataStax Java driver 3.9.0
for Apache Cassandra
504 [main] INFO com.datastax.driver.core.GuavaCompatibility - Detected
Guava < 19 in the classpath, using legacy compatibility layer
645 [main] INFO com.datastax.driver.core.ClockFactory - Using native
clock to generate timestamps.
721 [main] INFO com.datastax.driver.core.NettyUtil - Found Netty's
native epoll transport in the classpath, using it
978 [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)
978 [main] INFO com.datastax.driver.core.Cluster - New Cassandra host /
127.0.0.1:9042 added
…On Mon, Mar 1, 2021 at 5:19 PM Jan Jansen ***@***.***> wrote:
bin/gremlin.sh
gremlin> JanusGraphManagerUtility.getInstance()
Here you have to connect to the remote console before.
I need the first lines of the logs of the gremlin-serverl.log.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKXXAIZ5J3TZVJDE7CTTBN5LPANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
How can I solve the problem ???
…On Mon, Mar 1, 2021 at 5:33 PM Jan Jansen ***@***.***> wrote:
I'm pretty sure now. your server is not started with correct the
gremlin-server.yaml.
https://github.com/JanusGraph/janusgraph/blob/v0.5/janusgraph-dist/src/assembly/static/bin/janusgraph.sh#L173-L177
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKQP3BKCKVZVOPRLXV3TBN7B5ANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
One more question it was working with version 0.4.0. How that can be
possible ???
…On Mon, Mar 1, 2021 at 5:36 PM Vinayak Bali ***@***.***> wrote:
How can I solve the problem ???
On Mon, Mar 1, 2021 at 5:33 PM Jan Jansen ***@***.***>
wrote:
> I'm pretty sure now. your server is not started with correct the
> gremlin-server.yaml.
>
>
> https://github.com/JanusGraph/janusgraph/blob/v0.5/janusgraph-dist/src/assembly/static/bin/janusgraph.sh#L173-L177
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#2491 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIKNOKQP3BKCKVZVOPRLXV3TBN7B5ANCNFSM4YMDU4TQ>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
I will check it in a while and get back to you.
…On Mon, 1 Mar 2021, 7:46 pm Jan Jansen, ***@***.***> wrote:
Did it helped?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#2491 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIKNOKVKNSICG4U3TXUGXG3TBOOSJANCNFSM4YMDU4TQ>
.
|
Beta Was this translation helpful? Give feedback.
-
It didn't work still the same issue.
gremlin-server-cql-es.yaml
#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.
host: 0.0.0.0
port: 8182
scriptEvaluationTimeout: 1000000
channelizer:
org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphs: {
ConfigurationManagementGraph:
conf/janusgraph-cql-configurationgraph.properties
}
scriptEngines: {
gremlin-groovy: {
plugins: {
org.janusgraph.graphdb.tinkerpop.plugin.JanusGraphGremlinPlugin: {},
org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},
org.apache.tinkerpop.gremlin.tinkergraph.jsr223.TinkerGraphGremlinPlugin:
{},
org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin:
{classImports: [java.lang.Math], methodImports: [java.lang.Math#*]},
org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin:
{files: [scripts/empty-sample.groovy]}}}}
serializers:
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config:
{ ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config:
{ serializeResultToString: true }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
# Older serialization versions for backwards compatibility:
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config:
{ ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0,
config: {ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config:
{ serializeResultToString: true }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
processors:
- { className:
org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config:
{ sessionTimeout: 28800000 }}
- { className:
org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor,
config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }}
metrics: {
consoleReporter: {enabled: true, interval: 180000},
csvReporter: {enabled: true, interval: 180000, fileName:
/tmp/gremlin-server-metrics.csv},
jmxReporter: {enabled: true},
slf4jReporter: {enabled: true, interval: 180000},
gangliaReporter: {enabled: false, interval: 180000, addressingMode:
MULTICAST},
graphiteReporter: {enabled: false, interval: 180000}}
maxInitialLineLength: 4096
maxHeaderSize: 8192
maxChunkSize: 8192
maxContentLength: 65536
maxAccumulationBufferComponents: 1024
resultIterationBatchSize: 64
writeBufferLowWaterMark: 32768
writeBufferHighWaterMark: 65536
…On Mon, Mar 1, 2021 at 7:47 PM Vinayak Bali ***@***.***> wrote:
I will check it in a while and get back to you.
On Mon, 1 Mar 2021, 7:46 pm Jan Jansen, ***@***.***> wrote:
> Did it helped?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#2491 (reply in thread)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIKNOKVKNSICG4U3TXUGXG3TBOOSJANCNFSM4YMDU4TQ>
> .
>
|
Beta Was this translation helpful? Give feedback.
-
gremlin-server.log
265 [main] WARN org.apache.tinkerpop.gremlin.server.GremlinServer -
Graph [ConfigurationManagementGraph] configured at
[conf/janusgraph-cql-configurationgraph.properties] could not be
instantiated and will not be available in Gremlin Server. GraphFactory
message: GraphFactory can only instantiate Graph implementations from
classes that have a static open() method that takes a single Apache Commons
Configuration argument - [class org.janusgraph.core.ConfiguredGraphFactory]
does not seem to have one
java.lang.RuntimeException: GraphFactory can only instantiate Graph
implementations from classes that have a static open() method that takes a
single Apache Commons Configuration argument - [class
org.janusgraph.core.ConfiguredGraphFactory] does not seem to have one
at
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:79)
at
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:69)
at
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:103)
at
org.apache.tinkerpop.gremlin.server.util.DefaultGraphManager.lambda$new$0(DefaultGraphManager.java:57)
at
java.util.LinkedHashMap$LinkedEntrySet.forEach(LinkedHashMap.java:671)
at
org.apache.tinkerpop.gremlin.server.util.DefaultGraphManager.<init>(DefaultGraphManager.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:80)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:122)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:86)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:345)
267 [main] INFO
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor -
Initialized Gremlin thread pool. Threads in pool named with pattern
gremlin-*
311 [main] INFO
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor -
Initialized GremlinExecutor and preparing GremlinScriptEngines instances.
2299 [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
at
org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.lambda$createGremlinScriptEngine$16(DefaultGremlinScriptEngineManager.java:464)
at
java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at
java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
at
java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:647)
at
java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:272)
at
java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
at
java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at
java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at
java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at
java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at
java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at
java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:485)
at
org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.createGremlinScriptEngine(DefaultGremlinScriptEngineManager.java:450)
at
org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.getEngineByName(DefaultGremlinScriptEngineManager.java:219)
at
org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.lambda$getEngineByName$0(CachedGremlinScriptEngineManager.java:57)
at
java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at
org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.getEngineByName(CachedGremlinScriptEngineManager.java:57)
at
org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:267)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.script.ScriptException: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: graph for class:
Script1
at
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:378)
at
javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
at
org.apache.tinkerpop.gremlin.jsr223.DefaultGremlinScriptEngineManager.lambda$createGremlinScriptEngine$16(DefaultGremlinScriptEngineManager.java:460)
... 24 more
Caused by: javax.script.ScriptException:
groovy.lang.MissingPropertyException: No such property: graph for class:
Script1
at
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:697)
at
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:376)
... 26 more
Caused by: groovy.lang.MissingPropertyException: No such property: graph
for class: Script1
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:65)
at
org.codehaus.groovy.runtime.callsite.PogoGetPropertySite.getProperty(PogoGetPropertySite.java:51)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGroovyObjectGetProperty(AbstractCallSite.java:309)
at Script1.run(Script1.groovy:30)
at
org.apache.tinkerpop.gremlin.groovy.jsr223.GremlinGroovyScriptEngine.eval(GremlinGroovyScriptEngine.java:674)
... 27 more
2300 [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
at
java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375)
at
java.util.concurrent.CompletableFuture.join(CompletableFuture.java:1947)
at
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.lambda$new$4(ServerGremlinExecutor.java:141)
at
java.util.LinkedHashMap$LinkedKeySet.forEach(LinkedHashMap.java:559)
at
org.apache.tinkerpop.gremlin.server.util.ServerGremlinExecutor.<init>(ServerGremlinExecutor.java:136)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:122)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.<init>(GremlinServer.java:86)
at
org.apache.tinkerpop.gremlin.server.GremlinServer.main(GremlinServer.java:345)
Caused by: java.lang.IllegalArgumentException: gremlin-groovy is not an
available GremlinScriptEngine
at
org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.registerLookUpInfo(CachedGremlinScriptEngineManager.java:95)
at
org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.getEngineByName(CachedGremlinScriptEngineManager.java:58)
at
org.apache.tinkerpop.gremlin.groovy.engine.GremlinExecutor.lambda$eval$0(GremlinExecutor.java:267)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
…On Mon, Mar 1, 2021 at 9:12 PM Vinayak Bali ***@***.***> wrote:
It didn't work still the same issue.
gremlin-server-cql-es.yaml
#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.
host: 0.0.0.0
port: 8182
scriptEvaluationTimeout: 1000000
channelizer:
org.apache.tinkerpop.gremlin.server.channel.WsAndHttpChannelizer
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphs: {
ConfigurationManagementGraph:
conf/janusgraph-cql-configurationgraph.properties
}
scriptEngines: {
gremlin-groovy: {
plugins: {
org.janusgraph.graphdb.tinkerpop.plugin.JanusGraphGremlinPlugin: {},
org.apache.tinkerpop.gremlin.server.jsr223.GremlinServerGremlinPlugin: {},
org.apache.tinkerpop.gremlin.tinkergraph.jsr223.TinkerGraphGremlinPlugin:
{},
org.apache.tinkerpop.gremlin.jsr223.ImportGremlinPlugin:
{classImports: [java.lang.Math], methodImports: [java.lang.Math#*]},
org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {files:
[scripts/empty-sample.groovy]}}}}
serializers:
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config:
{ ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV3d0, config:
{ serializeResultToString: true }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
# Older serialization versions for backwards compatibility:
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config:
{ ioRegistries: [org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoLiteMessageSerializerV1d0,
config: {ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GryoMessageSerializerV1d0, config:
{ serializeResultToString: true }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV2d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistry] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerGremlinV1d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
- { className:
org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0,
config: { ioRegistries:
[org.janusgraph.graphdb.tinkerpop.JanusGraphIoRegistryV1d0] }}
processors:
- { className:
org.apache.tinkerpop.gremlin.server.op.session.SessionOpProcessor, config:
{ sessionTimeout: 28800000 }}
- { className:
org.apache.tinkerpop.gremlin.server.op.traversal.TraversalOpProcessor,
config: { cacheExpirationTime: 600000, cacheMaxSize: 1000 }}
metrics: {
consoleReporter: {enabled: true, interval: 180000},
csvReporter: {enabled: true, interval: 180000, fileName:
/tmp/gremlin-server-metrics.csv},
jmxReporter: {enabled: true},
slf4jReporter: {enabled: true, interval: 180000},
gangliaReporter: {enabled: false, interval: 180000, addressingMode:
MULTICAST},
graphiteReporter: {enabled: false, interval: 180000}}
maxInitialLineLength: 4096
maxHeaderSize: 8192
maxChunkSize: 8192
maxContentLength: 65536
maxAccumulationBufferComponents: 1024
resultIterationBatchSize: 64
writeBufferLowWaterMark: 32768
writeBufferHighWaterMark: 65536
On Mon, Mar 1, 2021 at 7:47 PM Vinayak Bali ***@***.***>
wrote:
> I will check it in a while and get back to you.
>
> On Mon, 1 Mar 2021, 7:46 pm Jan Jansen, ***@***.***> wrote:
>
>> Did it helped?
>>
>> —
>> You are receiving this because you authored the thread.
>> Reply to this email directly, view it on GitHub
>> <#2491 (reply in thread)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AIKNOKVKNSICG4U3TXUGXG3TBOOSJANCNFSM4YMDU4TQ>
>> .
>>
>
|
Beta Was this translation helpful? Give feedback.
-
I may be able to help here. I have had exactly the same problems. I used three Docker (Podman) containers (one for Cassandra, one for Janusgraph, one for Gremlin):
I checked the configuration files for days and tried pretty much every combination I found on the net. No matter whether I set :remote console to remote or local: nothing worked. At the very end I realized that there is no communication to the server with the commands. I then found this issue from Tinkerpop / Gremlin: It seems that the gremlin console checks the commands locally first. However, if I prefix the commands (whether with or without :remote console) with :>, then everything works: :> ConfiguredGraphFactory.getGraphNames() or :> ConfiguredGraphFactory.getTemplateConfiguration() I hope this can help someone. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Initially, I was using ConfiguredGraphFactory with janusgraph version 0.4.0. The configuration was done using the following blogs for reference:
https://stackoverflow.com/questions/51594838/janusgraph-please-add-a-key-named-configurationmanagementgraph-to-the-graph
https://docs.janusgraph.org/basics/configured-graph-factory/
It was working as expected. Recently, I updated the janusgraph version to 0.5.2 and tried to set up ConfiguredGraphFactory but facing issues and it's not working. The difference which I see are as follows.
Version 0.4.0: Starting janusgraph created a schema named configuredgraphfactory automatically
Version 0.5.2: It is creating a schema named janusgraph.
Please include configurations and logs if available.
gremlin-server.yaml
janusgraph-cql-configurationgraph.properties
Error:
gremlin> :remote connect tinkerpop.server conf/remote.yaml session
==>Configured localhost/127.0.0.1:8182-[8671c17b-e724-484a-aa9f-6b0d255b5ded]
gremlin> :remote console
==>All scripts will now be sent to Gremlin Server - [localhost/127.0.0.1:8182]-[8671c17b-e724-484a-aa9f-6b0d255b5ded] - type ':remote console' to return to local mode
gremlin> ConfiguredGraphFactory.getGraphNames()
Please add a key named "ConfigurationManagementGraph" to the "graphs" property in your YAML file and restart the server to be able to use the functionality of the ConfigurationManagementGraph class.
Tried to resolve the issue on google group and gitter, no solution was found.
For confirmed bugs, please report:
Version: 0.5.2
Storage Backend: cql
Expected Behavior: ConfiguredGraphFactory must work
Current Behavior: ConfiguredGraphFactory not working
Stack Trace (if you have one)
Beta Was this translation helpful? Give feedback.
All reactions