kevinw66 commented on code in PR #3609:
URL: https://github.com/apache/hive/pull/3609#discussion_r976641320
##########
hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java:
##########
@@ -306,18 +308,30 @@ private Connector createChannelConnector(Server server) {
public FilterHolder makeAuthFilter() throws IOException {
FilterHolder authFilter = new FilterHolder(AuthFilter.class);
UserNameHandler.allowAnonymous(authFilter);
+
+ // compatible with Hadoop 3.3.x.
Review Comment:
If we don't care about versions before 3.3.x, we need to use
AuthFilterInitializer, refers
to:https://github.com/apache/hadoop/commit/4ea6c2f457496461afc63f38ef4cef3ab0efce49#diff-8794afa0dfd45cc8be6743dd6d13d0bd89bdfbd6dbab8804da0b0555413734d6R67
`AuthFilterInitializer` not exists in earlier version in Hadoop, that's why
I set all configuration by myself, I'm trying to compatible with both
Hadoop3.1.x and Hadoop3.3.x, But I only tested with Hadoop3.3.x
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]