bitsail icon indicating copy to clipboard operation
bitsail copied to clipboard

[bugfix]KerberosAuthenticator#getugi error

Open yanghuaiGit opened this issue 2 years ago • 2 comments

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 avatar Nov 04 '22 08:11 yanghuaiGit

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

yanghuaiGit avatar Nov 04 '22 08:11 yanghuaiGit

Thank for your bugfix~

hk-lrzy avatar Nov 04 '22 10:11 hk-lrzy

@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

BlockLiu avatar Dec 29 '22 03:12 BlockLiu