Skip to content
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

[bugfix]KerberosAuthenticator#getugi error #94

Closed
yanghuaiGit opened this issue Nov 4, 2022 · 3 comments
Closed

[bugfix]KerberosAuthenticator#getugi error #94

yanghuaiGit opened this issue Nov 4, 2022 · 3 comments

Comments

@yanghuaiGit
Copy link
Contributor

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

KerberosAuthenticator.getUgi not execute UserGroupInformation#loginUserFromKeytabAndReturnUGI, Even though kerberos parameters are passed。

this is my test
image

securityConfiguration.get(KerberosOptions.KERBEROS_ENABLE) is always false.because There's no place to assign。
you should add:
securityConf.set(KerberosOptions.KERBEROS_ENABLE, true);
image

and There's actually a problem here,

UserGroupInformation#loginUserFromKeytabAndReturnUGI should be execute in HadoopSecurityModule#login,but you return value is UserGroupInformation.getCurrentUser();

so securityModule#login is invalid

We can reproduce the bug as follows (use screenshots if necessary):

  1. The job conf is: '....'

  2. The test data is: '....'

  3. Bitsail run command: '....'

  4. The error can be seen in: '....'

(Note that the above sentences are not necessary for each bug report issue.)

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Build Environment

Describe the environment where the test project was build.

  • OS [e.g. Debain 11.0]
  • JDK [e.g. 1.8.0_301]
  • Maven [e.g. 3.6.3]
  • ...

Execution Environment

Describe the environment where the test project ran.

  • OS [e.g. Debain 11.0]
  • JDK [e.g. 1.8.0_301]
  • Deployment [e.g. Yarn | CDH 6.3.x]
  • ...

Additional context

Add any other context about the problem here.

@yanghuaiGit
Copy link
Contributor Author

securityConfiguration.get(KerberosOptions.KERBEROS_ENABLE) always return false
image

@hk-lrzy
Copy link
Collaborator

hk-lrzy commented Nov 4, 2022

Thank for your bugfix~

@hk-lrzy hk-lrzy closed this as completed Nov 7, 2022
@BlockLiu
Copy link
Collaborator

BlockLiu commented Dec 29, 2022

@yanghuaiGit Thanks for your contribution to the BitSail community. Would you like to join contributor chat group? Here is the QR code. If it expires, you can leave a message here. Look forward to your coming!
ContributorGroup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants