Janusgraph Authentication cannot create users

63 views
Skip to first unread message

sparshneel chanchlani

unread,
Jul 20, 2020, 5:59:54 AM7/20/20
to JanusGraph users
Hi, 
I am actually trying to add authentication to Janusgraph. I am actually referring the link below
below is may credentials DB config:

gremlin.graph=org.janusgraph.core.JanusGraphFactory
storage.backend=cql
storage.hostname= 10.xx.xx.xx
storage.port= 9042
storage.username= cassandrauser
storage.password= cassandrapwd
storage.cql.keyspace=creds_db
storage.read-time=50000
storage.cql.write-consistency-level=LOCAL_QUORUM
storage.cql.read-consistency-level=LOCAL_QUORUM
cluster.max-partitions=32
storage.lock.wait-time=5000
storage.lock.retries=5
ids.block-size=100000

Actually when i start the gremlin-server the creds_db and the graphDB creates successfully. The issue, i am not able to create the credentials using Credentials(graph) groovy script, i am trying through gremlin-consle see below.

 g1 = JanusGraphFactory.open('conf/gremlin-server/janusgraph-server-credentials.properties')
==>standardjanusgraph[cql:[]]
gremlin> creds = Credentials(g1)
No signature of method: groovysh_evaluate.Credentials() is applicable for argument types: (org.janusgraph.graphdb.database.StandardJanusGraph) values: [standardjanusgraph[cql:[]

Actaully the groovysh_evaluate script does not support standard graph as parameters. What should be my credentials.properties for cassandra??



Thanks,
Sparshneel

sparshneel chanchlani

unread,
Jul 20, 2020, 6:04:20 AM7/20/20
to JanusGraph users
Also are there any other ways of creating users??

HadoopMarc

unread,
Jul 26, 2020, 4:50:57 AM7/26/20
to JanusGraph users
See the section "Credentials graph DSL" in:
So, you instantiate the CredentialsDB GraphTraversalSource using:

credentials = graph.traversal(CredentialTraversalSource.class)

where graph is the JanusGraph instance holding your CredentialsDb (the TinkerPop ref docs refer to TinkerGraph which is not applicable here).

HTH,    Marc


Op maandag 20 juli 2020 om 12:04:20 UTC+2 schreef sparshneel...@gmail.com:

sparshneel chanchlani

unread,
Jul 28, 2020, 5:36:03 AM7/28/20
to janusgra...@googlegroups.com
Thanks it worked for me.

-Sparshneel

--
You received this message because you are subscribed to the Google Groups "JanusGraph users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to janusgraph-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/1f6729f2-1007-4139-92e3-b4985f20744bn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages