hailin0 commented on code in PR #5372:
URL: https://github.com/apache/seatunnel/pull/5372#discussion_r1371204988


##########
seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/utils/HiveMetaStoreProxy.java:
##########
@@ -53,7 +55,22 @@ private HiveMetaStoreProxy(Config config) {
                 && 
config.hasPath(BaseSourceConfig.KERBEROS_KEYTAB_PATH.key())) {
             String principal = 
config.getString(BaseSourceConfig.KERBEROS_PRINCIPAL.key());
             String keytabPath = 
config.getString(BaseSourceConfig.KERBEROS_KEYTAB_PATH.key());
+            String hdfsSitePath = 
config.getString(BaseSourceConfig.HDFS_SITE_PATH.key());
+            String kerberosKrb5ConfPath =
+                    
config.getString(BaseSourceConfig.KERBEROS_KRB5_CONF_PATH.key());
+            System.setProperty("java.security.krb5.conf", 
kerberosKrb5ConfPath);

Review Comment:
   When to use this variable
   
   1. This variable will take effect globally on the current server, and 
multiple tasks will overwrite this path with each other.
   2. This variable is only initialized on the seatunnl-client or task-committer



-- 
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]

Reply via email to