Re: Janusgraph Authentication cannot create users


HadoopMarc <bi...@...>
 

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 spars...@...:

Also are there any other ways of creating users??


On Monday, July 20, 2020 at 3:29:54 PM UTC+5:30, sparshneel chanchlani wrote:
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

Join janusgraph-users@lists.lfaidata.foundation to automatically receive all group messages.