Date
1 - 8 of 8
Kerberos authentication of gremlin console with Janusgraph server
hadoopmarc@...
Kerberos has a reputation for being complex. I would try to first get the pure TinkerPop example working, using the TInkerPop Gremlin-server and Gremlin Console distributions. Also check the log output of Gremlin Server in case of exceptions in Gremlin Console. The command graph = JanusGraphFactory.open('') is not the best example to start with in Gremlin Console. Better is g.V().limit(5).
|
|
Hi Marc,
In my case it's both, gremlin acts as client to kerberised hbase and gremlin acts as kerberised server to gremlin console/clients. Also I have already tested hbase separately along with janus, it works fine. Now I want to add kerberized authentication of janusserver on top of this. So I want gremlin console to get authenticated Thanks, Nikita |
|
hadoopmarc@...
You are mixing up two procedures:
Best wishes, Marc |
|
Thanks for recommending this approach. However, I am getting following error:
when running gremlin> def list = client.submit("g.V()").all().get() >>> CCacheInputStream: readFlags()
get normal credential
org.apache.tinkerpop.gremlin.driver.exception.ResponseException: Failure to initialize security context
Also similarly when earlier I was running, I am getting inconsistent response: 1. :remote connect tinkerpop.server conf/remote.yaml 2. :remote console 3. graph=JanusGraphFactory.open("/root/janusgraph-0.6.0/conf/janusgraph-hbase.properties"), sometimes works fine and returns configured graph. However sometimes when I repeat 1,2. It gives error "Failure to initialize security context" |
|
hadoopmarc@...
Connecting gremlin console to gremlin server goes like:
and see https://tinkerpop.apache.org/docs/current/reference/#connecting-via-drivers how to use the cluster object.Did you try this already? |
|
Nikita Pande
" Krb5Authenticator runs inside Gremlin Server and authenticates users of gremlin clients (e.g. Gremlin Console). " this is configured as part of gremlin-server.yaml.
When I run just "graph" alone from gremlin-console, I get error "Authenticator is not ready to handle requests". Whereas when I run JanusGraphFactory it passes. Not sure why do we get this. My current service keytab had 2 principals and I configured one. Will it create problem? |
|
hadoopmarc@...
Hi Nikita,
I do not understand: Krb5Authenticator runs inside Gremlin Server and authenticates users of gremlin clients (e.g. Gremlin Console). Why would you run JanusGraphFactory in the Gremlin Console if the graph is already opened server side? Can you also check the logs of Gremlin Server and see if they give any additinal hint about Krb5Authenticator? Best wishes, Marc |
|
Hi team,
Kerberos authentication of gremlin console with janusgraph version 0.6.0
I am facing an issue when trying to configure kerberos auth of gremlin console with with janus as per https://tinkerpop.apache.org/docs/current/reference/#krb5authenticator. Currently after kinit , I try to start gremlin console and run some traversals. So sometimes I get "Authenticator is not ready to handle requests" while sometimes it goes through while running command: graph = JanusGraphFactory.open('') Its very inconsistent. Please help me in resolving this. Thanks and Regards,
Nikita
|
|