Re: Janusgraph Authentication cannot create users


sparshneel chanchlani <sparshneel...@...>
 

Thanks it worked for me.

-Sparshneel

On Sun, Jul 26, 2020 at 2:20 PM HadoopMarc <bi...@...> wrote:
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

--
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 janusgra...@....
To view this discussion on the web visit https://groups.google.com/d/msgid/janusgraph-users/1f6729f2-1007-4139-92e3-b4985f20744bn%40googlegroups.com.

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