deleted
deleted
Explore posts from servers
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Yeah Im giving up for now. Fairly certain Im doing everything correctly but Ill look into it a bit more when I have time later
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
I will try again, maybe I missed something earlier, but im fairly certain this doesn't work at least with the python client on my system for some reason
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Yes I know you need to run ConfiguredGraphFactory.create or .open after setting up a config depending on how you do it
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Ok, thats good to know. I was missing that, thank you. so I presume my python client in docker connects correctly then as I see the ScyllaDB record created but Im unable to access the traversal in that environment later on (e.g. after waiting 20s) which seems strange
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
This repo reproduces the bug if you're running on a debian 11 system: https://github.com/jerlendds/janus-dynamicgraphs-bug. What systems are you able to get this functionality working on?
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
They should not be an issue. Ive run this on bare metal as well and the same error of org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException occurs
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
I've been trying to hook up the project to the vscode debugger but I keep running into issues. How do you guys debug this project? edit: got it working! turns out it was vscode being weird
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Tried running on bare metal and org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException still occurs when running:
map = new HashMap<String, Object>();
map.put('storage.backend', 'cql')
map.put('storage.hostname', '127.0.0.1:9042')
map.put('storage.directory', '/var/lib/janusgraph/data')
map.put('storage.cql.keyspace', 'janusgraph')
map.put('index.search.backend', 'elasticsearch')
map.put('index.search.hostname', '127.0.0.1:9200')
map.put('index.search.directory', '/var/lib/janusgraph/index')
ConfiguredGraphFactory.createTemplateConfiguration(new MapConfiguration(map));
map = new HashMap<String, Object>();
map.put('storage.backend', 'cql')
map.put('storage.hostname', '127.0.0.1:9042')
map.put('storage.directory', '/var/lib/janusgraph/data')
map.put('storage.cql.keyspace', 'janusgraph')
map.put('index.search.backend', 'elasticsearch')
map.put('index.search.hostname', '127.0.0.1:9200')
map.put('index.search.directory', '/var/lib/janusgraph/index')
ConfiguredGraphFactory.createTemplateConfiguration(new MapConfiguration(map));
I will push a repo where this can be reproduced on a Debian 11 system in a few minutes. Here are the error logs from running locally (NOT running in docker except for the elasticsearch and ScyllaDB container):
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Heres the output from the startup logs in docker. You'll notice 14:33:34 safelyRenameFile [ERRO] Failed copying from /tmp/temp591981868 to /etc/opt/janusgraph/janusgraph-server.yaml but I don't believe thats related to the issue and I mounted them read only as a sanity check because I no longer trust anything interacting with my config due to the other errors I was running into
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Server appears to start fine and I dont notice anything alarming from the DEBUG logs, I just woke up today and Ill be trying to set up Janus on bare metal soon but so far everything Ive tried has been from inside a docker container running on an updated Debian 11 system. Most things attempted have been through a gremlin python client and that appears to be able to create graphs dynamically however Im not able to access the traversal because it doesnt want to bind to somewhere I can access it. The issue you quoted of ConfiguredGraphFactory.getGraphNames() this command seems to work fine when running through the python client but theres no way to actually view the returned output as its a ResultSet object from gremlin python that doesn't implement a lot of useful methods. When I jump into the server through docker compose exec janus bash and then run bin/gremlin.sh and proceed to run ConfiguredGraphFactory.getGraphNames() then I run into the error of org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Yeah Ive been doing that as well, confused me at first thought before I realized that needed to be done lol
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Should I file an issue if it doesn't work with the most basic config on bare metal? :P
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Trying to run ConfiguredGraphFactory.getGraphNames() after removing volumes and restarting my container with graph.graphname=ConfigurationManagementGraph results in the same issue org.janusgraph.graphdb.management.utils.ConfigurationManagementGraphNotEnabledException. Ive actually already cloned the Janus repo and have built the zip archive so I guess I could just try running that without docker yeah
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Tried that earlier too but I will try again :P
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
janusgraph@9c71cc10d45a:/opt/janusgraph$ cat /etc/opt/janusgraph/janusgraph-dynamic.properties
#
# NOTE: THIS FILE IS GENERATED VIA "update.sh"
# DO NOT EDIT IT DIRECTLY; CHANGES WILL BE OVERWRITTEN.
#
# Copyright 2021 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.
# set-vertex-id=true

# gremlin.graph=org.janusgraph.core.JanusGraphFactory
gremlin.graph=org.janusgraph.core.ConfiguredGraphFactory
graph.graphname=project

storage.backend=cql
storage.hostname=sdb:9042
storage.directory=/var/lib/janusgraph/data
# storage.cql.keyspace=ConfigurationManagementGraph

index.search.backend=elasticsearch
index.search.hostname=index:9200
index.search.directory=/var/lib/janusgraph/index
janusgraph@9c71cc10d45a:/opt/janusgraph$ cat /etc/opt/janusgraph/janusgraph-dynamic.properties
#
# NOTE: THIS FILE IS GENERATED VIA "update.sh"
# DO NOT EDIT IT DIRECTLY; CHANGES WILL BE OVERWRITTEN.
#
# Copyright 2021 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.
# set-vertex-id=true

# gremlin.graph=org.janusgraph.core.JanusGraphFactory
gremlin.graph=org.janusgraph.core.ConfiguredGraphFactory
graph.graphname=project

storage.backend=cql
storage.hostname=sdb:9042
storage.directory=/var/lib/janusgraph/data
# storage.cql.keyspace=ConfigurationManagementGraph

index.search.backend=elasticsearch
index.search.hostname=index:9200
index.search.directory=/var/lib/janusgraph/index
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Yeah its mounted and it matches what I want
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
Its mounted, I tried that before but ill test again, one moment
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
so that top snippet now looks like:
host: 0.0.0.0
port: 8182
evaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphs: {
ConfigurationManagementGraph: /etc/opt/janusgraph/janusgraph-dynamic.properties,
# graph: /etc/opt/janusgraph/janusgraph-dynamic.properties # /etc/opt/janusgraph/janusgraph.properties
}
host: 0.0.0.0
port: 8182
evaluationTimeout: 30000
channelizer: org.apache.tinkerpop.gremlin.server.channel.WebSocketChannelizer
graphManager: org.janusgraph.graphdb.management.JanusGraphManager
graphs: {
ConfigurationManagementGraph: /etc/opt/janusgraph/janusgraph-dynamic.properties,
# graph: /etc/opt/janusgraph/janusgraph-dynamic.properties # /etc/opt/janusgraph/janusgraph.properties
}
64 replies
JJanusGraph
Created by deleted on 7/1/2023 in #questions
How do I enable dynamic graphs while using the latest docker image `janusgraph/janusgraph:latest`?
No that can be removed
64 replies