You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "lordk911 (via GitHub)" <gi...@apache.org> on 2023/12/15 11:28:21 UTC
[PR] user can use different hadoop-user to submit application [incubator-streampark]
lordk911 opened a new pull request, #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401
<!--
Thank you for contributing to StreamPark! Please make sure that your code changes
are covered with tests. And in case of new features or big changes
remember to adjust the documentation.
## Contribution Checklist
- If this is your first time, please read our contributor guidelines: [Submit Code](https://streampark.apache.org/community/submit_guide/submit_code).
- Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-streampark/issues).
- Name the pull request in the form "[Feature] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
- Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.
- If the PR is unfinished, add `[WIP]` in your PR title, e.g., `[WIP][Feature] Title of the pull request`.
-->
## What changes were proposed in this pull request
Issue Number: close #3222
<!--(For example: This pull request proposed to add checkstyle plugin).-->
## Brief change log
<!--*(for example:)*
- *Add maven-checkstyle-plugin to root pom.xml*
-->
## Verifying this change
<!--*(Please pick either of the following options)*-->
This change is a trivial rework / code cleanup without any test coverage.
*(or)*
This change is already covered by existing tests, such as *(please describe tests)*.
*(or)*
This change added tests and can be verified as follows:
<!--*(example:)*
- *Added integration tests for end-to-end.*
- *Added *Test to verify the change.*
- *Manually verified the change by testing locally.* -->
## Does this pull request potentially affect one of the following parts
- Dependencies (does it add or upgrade a dependency): no
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] User can use different hadoop-user to submit application [incubator-streampark]
Posted by "lordk911 (via GitHub)" <gi...@apache.org>.
lordk911 commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1870907465
> One more question, have you tested it? Will the set hadoopUser work ok?
I've tested it against streampark 2.1.2
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1870353164
One more question, have you tested it? Will the set hadoopUser work ok?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "lordk911 (via GitHub)" <gi...@apache.org>.
lordk911 commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1867430141
> I think the key changes are in YarnApplicationClient class, setConfig method directly using UserGroupInformation.setLoginUser method is not correct, should use ProxyUser, This requires either changing the doSubmit method declaration or moving the setConfig changes into the doSubmit method. And config the hadoop-user's keytab on the job definition page is required in a Kerberos-enabled environment too.
@wolfboys Do you have any suggestions for this?
1、if use UserGroupInformation.setLoginUser ,The CurrentUser of the other tenant is changed.
2、if use ProxyUser , the user configed as `streampark.hadoop-user-name` should have the ability to represent other users.
3、if kerberos is enabled, each tenant needs to upload their own keytab, and the keytab needs to be protected
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "lordk911 (via GitHub)" <gi...@apache.org>.
lordk911 commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1868511842
@wolfboys The code has been modified to use proxyuser
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] User can use different hadoop-user to submit application [incubator-streampark]
Posted by "lordk911 (via GitHub)" <gi...@apache.org>.
lordk911 commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1870909134
> The hadoopUser also needs to be set in the application copy method
done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1858029816
Overall, it looks good 👍 Keep up the good work! I'm really looking forward to seeing the next update. 😊
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "caicancai (via GitHub)" <gi...@apache.org>.
caicancai commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1869921510
You can modify your title, for example [Feature] User can use different hadoop-user to submit application, the first letter is preferably capitalized, thank you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1867817720
> > I think the key changes are in YarnApplicationClient class, setConfig method directly using UserGroupInformation.setLoginUser method is not correct, should use ProxyUser, This requires either changing the doSubmit method declaration or moving the setConfig changes into the doSubmit method. And config the hadoop-user's keytab on the job definition page is required in a Kerberos-enabled environment too.
>
> @wolfboys Do you have any suggestions for this? 1、if use UserGroupInformation.setLoginUser ,The CurrentUser of the other tenant is changed. 2、if use ProxyUser , the user configed as `streampark.hadoop-user-name` should have the ability to represent other users. 3、if kerberos is enabled, each tenant needs to upload their own keytab, and the keytab needs to be protected
If Kerberos is involved, things will become complicated. How to manage the Kerberos configurations for different users is a problem we have to face. I suggest not considering Kerberos for now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1868642161
> @wolfboys The code has been modified to use proxyuser
Thanks for your contribution, I will review it later
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [Feature] User can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys merged PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1870350354
The hadoopUser also needs to be set in the application copy method
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] user can use different hadoop-user to submit application [incubator-streampark]
Posted by "lordk911 (via GitHub)" <gi...@apache.org>.
lordk911 commented on PR #3401:
URL: https://github.com/apache/incubator-streampark/pull/3401#issuecomment-1859652590
@wolfboys I think the key changes are in YarnApplicationClient class, setConfig method directly using UserGroupInformation.setLoginUser method is not correct, should use ProxyUser, This requires either changing the doSubmit method declaration or moving the setConfig changes into the doSubmit method. And config the hadoop-user's keytab on the job definition page is required in a Kerberos-enabled environment too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org