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/10 06:27:19 UTC

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

VolodymyrDuke opened a new pull request, #5261:
URL: https://github.com/apache/seatunnel/pull/5261

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/seatunnel/tree/dev/docs
   * [ ] If you are contributing the connector code, please check that the following files are updated:
     1. Update change log that in connector document. For more details you can refer to [connector-v2](https://github.com/apache/seatunnel/tree/dev/docs/en/connector-v2)
     2. Update [plugin-mapping.properties](https://github.com/apache/seatunnel/blob/dev/plugin-mapping.properties) and add new connector information in it
     3. Update the pom file of [seatunnel-dist](https://github.com/apache/seatunnel/blob/dev/seatunnel-dist/pom.xml)
   * [ ] Update the [`release-note`](https://github.com/apache/seatunnel/blob/dev/release-note.md).


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


[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

Posted by "VolodymyrDuke (via GitHub)" <gi...@apache.org>.
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


[GitHub] [seatunnel] EricJoy2048 merged pull request #5261: [Hotfix][Connector-V2][Hive] fix the bug that hive-site.xml can not be injected

Posted by "EricJoy2048 (via GitHub)" <gi...@apache.org>.
EricJoy2048 merged PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261


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


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

Posted by "SinyoWong (via GitHub)" <gi...@apache.org>.
SinyoWong commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1309482770


##########
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:
   > Does @SinyoWong reported error is related to this PR?
   
   Oh! I mean this issue: 
   https://github.com/apache/seatunnel/issues/4451



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


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

Posted by "SinyoWong (via GitHub)" <gi...@apache.org>.
SinyoWong commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1305070615


##########
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:
   Still got the error :
   org.apache.flink.client.program.ProgramInvocationException: The main method caused an error: ErrorCode:[HIVE-03], ErrorDescription:[Get hive table information from hive metastore service failed] - Get table [ods_wj.order_analysis] information failed
   Caused by: org.apache.thrift.transport.TTransportException
   



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


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

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1301421187


##########
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`?



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


Re: [PR] [Hotfix][Connector-V2][Hive] fix the bug that hive-site.xml can not be injected [seatunnel]

Posted by "FengSq (via GitHub)" <gi...@apache.org>.
FengSq commented on PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#issuecomment-1955984304

   为什么还报这个问题啊 
   seatunnel 2.3.4 
   hive 3.x
   hive-exec.2.3.9


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


Re: [PR] [Hotfix][Connector-V2][Hive] fix the bug that hive-site.xml can not be injected [seatunnel]

Posted by "zhaoli2333 (via GitHub)" <gi...@apache.org>.
zhaoli2333 commented on PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#issuecomment-2017539444

   @FengSq 解决了吗?
   hive 2.x hive-exec 2.3.9  一样报错


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


[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

Posted by "VolodymyrDuke (via GitHub)" <gi...@apache.org>.
VolodymyrDuke commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1308177043


##########
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:
   It has no problem. Thank you for your review. @Hisoka-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: commits-unsubscribe@seatunnel.apache.org

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


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

Posted by "VolodymyrDuke (via GitHub)" <gi...@apache.org>.
VolodymyrDuke commented on PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#issuecomment-1672633277

   @TyrantLucifer @hailin0 @EricJoy2048 PTAL.


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


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

Posted by "Hisoka-X (via GitHub)" <gi...@apache.org>.
Hisoka-X commented on code in PR #5261:
URL: https://github.com/apache/seatunnel/pull/5261#discussion_r1308221166


##########
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:
   Does @SinyoWong reported error is related to this PR?



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