You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "ic4y (via GitHub)" <gi...@apache.org> on 2023/08/24 10:44:06 UTC
[GitHub] [seatunnel] ic4y commented on a diff in pull request #5372: [bugfix][FileBase]update optimize hive add kerberos auth
ic4y commented on code in PR #5372:
URL: https://github.com/apache/seatunnel/pull/5372#discussion_r1304141444
##########
seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/utils/HiveMetaStoreProxy.java:
##########
@@ -51,11 +55,42 @@ 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);
+ // System.setProperty("krb.principal", "hadoop");
Review Comment:
delete it
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org