Skip to content

Impersonation of Kyuubi Spark Authz plugin #3620

Answered by AnirudhVyas
AnirudhVyas asked this question in Q&A
Discussion options

You must be logged in to vote

We made it to work on EMR on EKS by using Kyuubi authz plugin as spark sql extension and adding all jars on spark usr lib and setting appropriate hadoop configurations. Essentially we did this:
0. Customize EMR EKS build image

  1. we needed core-site xml to specify ldap groups mapping goes to /usr/lib/spark/conf or /etc/spark/conf or /etc/hadoop/conf
  2. We added ranger-* conf goes to emr eks conf (same as above)
  3. we then updated to provide capability to run kerberos kinit on container on build image
  4. finally when we run we use above boiler plate code to tell spark who logs in
    and then do
val ugiProxy = ugi.createProxyUser("username", loggedInUserUgi)
ugiProxy.doAs( spark sql goes here)

All stuf…

Replies: 7 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@pan3793
Comment options

@pan3793
Comment options

@fuhaiq
Comment options

@pan3793
Comment options

@fuhaiq
Comment options

Comment options

You must be logged in to vote
1 reply
@amanraj2520
Comment options

Answer selected by AnirudhVyas
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pan3793
Comment options

Comment options

You must be logged in to vote
3 replies
@amanraj2520
Comment options

@pan3793
Comment options

@pan3793
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants