-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HDDS-1788. Fix kerberos principal error in Ozone Recon #1201
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
Conversation
/label ozone |
@swagle @avijayanhwx @anuengineer Please review when you find time. Thanks! |
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.
+1 LGTM
💔 -1 overall
This message was automatically generated. |
I am not sure I understand the patch well enough. @xiaoyuyao @arp7 @elek can you guys please take a look ? |
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.
I think some time back we debugged this issue and see that configuration object in recon http server is not having correct configuration values. But one question I have is previously also there is a provider for OzoneConfiguration, and now we have changed it to Configuration. How this is solving that issue by changing to Configuration I have not got that part, care to explain.
Hi @bharatviswa504, OzoneConfigurationProvider is changed to ConfigurationProvider in this patch to have the correct I understand that its not very clear because this class is not part of this PR. The issue was that injection was not working in ReconHttpServer - https://github.com/apache/hadoop/blob/trunk/hadoop-ozone/ozone-recon/src/main/java/org/apache/hadoop/ozone/recon/ReconHttpServer.java#L34 because of the use of Configuration object. Now, with refactoring Please let me know if you have any more questions. |
💔 -1 overall
This message was automatically generated. |
The unit test, integration test and checkstyle failures are not related to this patch. |
Thank You @vivekratnavel for the fix and the explanation. I think, we need to fix the title for this jira, as this is not adding Kerberos support to Ozone. It is fixing ConfigurationProvider, so that injection works. And fixing this will fix ReconServer start. As this will fix passing correct configuration to ReconHttpServer. So, this means it fix Kerberos/Non-Kerberos and picking correct configuration in ReconHttpServer. Can you change the title accordingly, and update the Jira. It will be helpful for future reference. |
💔 -1 overall
This message was automatically generated. |
Thank You @vivekratnavel for the contribution. |
Recon fails to come up in a secure cluster with the following error:
This patch addresses this issue and enables Recon to come up in clusters secured by kerberos. I have manually tested the patch by creating the recon jar and replacing an old jar in a live secure CM deployed cluster and verified that Recon starts successfully and is able to login successfully with the kerberos ticket. Also updated ozonesecure docker-compose file to add recon and verified that recon is able to come up successfully. This patch also fixes various typos found in other parts of the source code not related to the title of this JIRA.