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

[GitHub] [seatunnel] CheneyYin commented on issue #5174: [Bug] spark engine can not read hive source

CheneyYin commented on issue #5174:
URL: https://github.com/apache/seatunnel/issues/5174#issuecomment-1657400454

   Your environment used [Apache Hive : 3.1.3000.7.1.6.0-297](https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/runtime-release-notes/topics/rt-pvc-runtime-component-versions.html). But `connector-hive` just compatible with `Hive 2`. 
   The constructor of  `HiveMetaStoreClient` in `Hive 2.3.9` is different from `Hive 3.1.3`.
   
   ```java
   // Hive 2.3.9
   public HiveMetaStoreClient(HiveConf conf) throws MetaException {
   ...
   }
   
   public HiveMetaStoreClient(HiveConf conf, HiveMetaHookLoader hookLoader, Boolean allowEmbedded) {
   ...
   }
   ```
   
   ```java
   // Hive 3.1.3
   public HiveMetaStoreClient(Configuration conf) throws MetaException {
   ...
   }
   
   public HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader hookLoader) throws MetaException {
   ...
   }
   
   public HiveMetaStoreClient(Configuration conf, HiveMetaHookLoader hookLoader, Boolean allowEmbedded) {
   ...
   }
   ```
   


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