dengzhhu653 commented on code in PR #6024:
URL: https://github.com/apache/hive/pull/6024#discussion_r2286726375


##########
llap-client/src/java/org/apache/hadoop/hive/registry/impl/ZkRegistryBase.java:
##########
@@ -187,7 +188,8 @@ public ZkRegistryBase(String instanceName, Configuration 
conf, String rootNs, St
 
   public static String getRootNamespace(Configuration conf, String 
userProvidedNamespace,
       String defaultNamespacePrefix) {
-    final boolean isSecure = ZookeeperUtils.isKerberosEnabled(conf);
+    final boolean isSecure = UserGroupInformation.isSecurityEnabled() &&

Review Comment:
   This llap `ZookeeperUtils` is dropped, as his work is taken over by the 
`SecurityUtils` which can be shared across the component. 
   Created a static util method to reuse this logic



-- 
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: gitbox-unsubscr...@hive.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscr...@hive.apache.org
For additional commands, e-mail: gitbox-h...@hive.apache.org

Reply via email to