Skip to content

[#1192] improvement: Add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE conf for storing shuffle data - #1194

Merged
zuston merged 5 commits into
apache:masterfrom
xumanbu:1192_uniffle_kerberos_user_config
Sep 13, 2023
Merged

[#1192] improvement: Add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE conf for storing shuffle data#1194
zuston merged 5 commits into
apache:masterfrom
xumanbu:1192_uniffle_kerberos_user_config

Conversation

@xumanbu

@xumanbu xumanbu commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE with default true,
if set false, shuffle data storing in security hdfs use UGI user.

Why are the changes needed?

Fix: #1192

Does this PR introduce any user-facing change?

add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE with default true

How was this patch tested?

add HadoopSecurityContextTest.testSecuredDisableProxyUser() test case

@roryqi roryqi changed the title [#1192]improvement: add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE conf for storing shuffle data [#1192] improvement: Add RSS_SECURITY_HADOOP_KERBEROS_PROXY_USER_ENABLE conf for storing shuffle data Sep 13, 2023
@roryqi

roryqi commented Sep 13, 2023

Copy link
Copy Markdown
Contributor

Could you add a doc if this pr introduce user-facing change?

@roryqi
roryqi requested a review from zuston September 13, 2023 01:47
.booleanType()
.defaultValue(true)
.withDescription(
"Whether create proxy user for spark job user to visiting secured hadoop cluster.");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

description: Whether using proxy user for spark job user to access secured Hadoop cluster

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@xumanbu

xumanbu commented Sep 13, 2023

Copy link
Copy Markdown
Contributor Author

Could you add a doc if this pr introduce user-facing change?

done

@codecov-commenter

codecov-commenter commented Sep 13, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.77%. Comparing base (80cc3d1) to head (c5af218).
Report is 511 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1194      +/-   ##
============================================
+ Coverage     53.64%   54.77%   +1.12%     
- Complexity     2584     2586       +2     
============================================
  Files           391      371      -20     
  Lines         22411    20065    -2346     
  Branches       1875     1875              
============================================
- Hits          12023    10990    -1033     
+ Misses         9682     8439    -1243     
+ Partials        706      636      -70     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@roryqi
roryqi requested a review from zuston September 13, 2023 07:38
Comment thread README.md Outdated
|rss.security.hadoop.kerberos.keytab.file|-|The kerberos keytab file path. And only when rss.security.hadoop.kerberos.enable is enabled, the option will be valid|
|rss.security.hadoop.kerberos.principal|-|The kerberos keytab principal. And only when rss.security.hadoop.kerberos.enable is enabled, the option will be valid|
|rss.security.hadoop.kerberos.relogin.interval.sec|60|The kerberos authentication relogin interval. unit: sec|
|rss.security.hadoop.kerberos.proxy.user.enable|true|Whether using proxy user for spark job user to access secured Hadoop cluster.|

@roryqi roryqi Sep 13, 2023

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spark job -> job

MR jobs or Tez jobs may use this config option.

.booleanType()
.defaultValue(true)
.withDescription(
"Whether using proxy user for spark job user to access secured Hadoop cluster.");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spark job -> job

@roryqi roryqi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. thanks @xumanbu @zuston

@zuston

zuston commented Sep 13, 2023

Copy link
Copy Markdown
Member

lgtm.

@zuston
zuston merged commit 10e8e3d into apache:master Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Support configurable for storing shuffle data to a secured HDFS cluster by a spark job user

4 participants