Hi
HadoopMarc.
I followed the link you directed me to, and did following steps but just to be clear my understanding of 1st link wasnt perfect
Added the following to my existing properties file for gremlin-server and saved it as gremlin-remote-secure.yaml:authentication: {
className: org.apache.tinkerpop.gremlin.server.auth.SimpleAuthenticator,
config: {
credentialsDb: conf/gremlin-server/tinkergraph-credentials.properties}}
while starting gremlin server as:
Couldn't find file conf/gremlin-server/tinkergraph-credentials.properties
So, I created a copy of file conf/gremlin-server/janusgraph-cassandra.properties and renames it as conf/gremlin-server/tinkergraph-credentials.properties.
The server starts perfectly and then I open gremlin shell and do following:
bin/gremlin.sh
graph = JanusGraphFactory.open("conf/gremlin-server/tinkergraph-credentials.properties")
credentials = credentials(graph)
credentials.createUser("admin", "admin")
Logically, that creates user with username admin and password as admin. So I should be able to authenticate with those credentials also:
I authenticate using a Python client named Goblin as that is only OGM for Janusraph which can help me query in Janus directly (I'm using Gremlin python 3.2.3 and it doesn't provide Cluster method)
async def run(loop, query):
cluster = await Cluster.open(loop, username='admin', password='admin')
client = await cluster.connect()
resp = await client.submit(query)
async for msg in resp:
messages.append(msg)
await cluster.close()
But after running, I'm unable to push anything to JanusGraph. When after running the above mentioned function, I still did a count of all vertex and it showed me 1, corresponding to user I just created but none of vertex or nodes created by calling the above mentioned function.
Is there something I'm missing out on? My specific query was to do I create tinkerpop-credentials.properties file?
Please note my config:
JanusGraph
Cassandra backend
ES indexing
Python client using Goblin.
Any alternatives for the same is also appreciated.
Thanks