-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support proxy user with kerberos #1027
Conversation
.gitignore
Outdated
@@ -1,7 +1,7 @@ | |||
*.iml | |||
.idea | |||
.DS_Store | |||
|
|||
.* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line must be deleted.
|
||
#wds.linkis.keytab.file=/opt/keytab/ | ||
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.file=/opt/keytab/ | ||
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.file=/opt/keytab/ | ||
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.file=/opt/keytab/ | ||
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
#wds.linkis.keytab.file=/opt/keytab/ | ||
#wds.linkis.keytab.host.enabled=true | ||
#wds.linkis.keytab.host=hadoop | ||
#wds.linkis.keytab.proxyuser.enable=true | ||
#wds.linkis.keytab.proxyuser.superuser=hadoop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These lines must be deleted.
@@ -90,6 +90,7 @@ class HiveEngineConnExecutor(id: Int, | |||
|
|||
override def init(): Unit = { | |||
LOG.info(s"Ready to change engine state!") | |||
System.setProperty("javax.security.auth.useSubjectCredsOnly", "false"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please set it when the keytab.proxyuser is enabled.
@@ -387,6 +389,13 @@ class SparkSubmitProcessEngineConnLaunchBuilder private extends JavaProcessEngin | |||
} | |||
} | |||
} | |||
|
|||
if (!SparkConfiguration.KEYTAB_PROXYUSER_ENABLED.getValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the same configuration as HadoopConf
6dec492
to
b94758a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
What is the purpose of the change
Enable proxy user mechanism with kerberos, when access hdfs or submit spark / hive job.
Related issues: #479, #465
Brief change log
Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
Documentation