You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "VolodymyrDuke (via GitHub)" <gi...@apache.org> on 2023/08/29 03:31:00 UTC

[GitHub] [seatunnel] VolodymyrDuke commented on a diff in pull request #5261: [Hotfix][Connector-V2][Hive] fix the bug that hive-site.xml can not be injected

VolodymyrDuke commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1308155254


##########
seatunnel-connectors-v2/connector-hive/src/main/java/org/apache/seatunnel/connectors/seatunnel/hive/utils/HiveMetaStoreProxy.java:
##########
@@ -67,6 +70,14 @@ private HiveMetaStoreProxy(Config config) {
                             metastoreUri);
             throw new HiveConnectorException(
                     HiveConnectorErrorCode.INITIALIZE_HIVE_METASTORE_CLIENT_FAILED, errorMsg, e);
+        } catch (MalformedURLException e) {
+            String errorMsg =
+                    String.format(
+                            "Using this hive uris [%s], hive conf [%s] to initialize "
+                                    + "hive metastore client instance failed",
+                            metastoreUri, config.getString(HiveConfig.HIVE_SITE_PATH.key()));

Review Comment:
   > When we reach here, the HiveConfig.HIVE_SITE_PATH must not be `null`?
   
   yes, you are right, I will check it. Thank you!



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