You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "zhangzhao2010 (via GitHub)" <gi...@apache.org> on 2025/09/12 08:50:05 UTC

[I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

zhangzhao2010 opened a new issue, #9856:
URL: https://github.com/apache/seatunnel/issues/9856

   ### Search before asking
   
   - [x] I had searched in the [feature](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22Feature%22) and found no similar feature requirement.
   
   
   ### Description
   
   ### Current Behavior
   Currently, the SeaTunnel Hive Sink connector only supports traditional Hive metastore through the `metastore_uri` configuration parameter. When using AWS EMR with Glue Data Catalog as the metastore, the connector fails to work because it doesn't support this configuration.
   
   ### Requested Feature
   Add support for AWS Glue Data Catalog as a metastore option in the SeaTunnel Hive Sink connector.
   
   ### Proposed Solution
   Extend the Hive Sink connector to support AWS Glue Data Catalog as a metastore option by:
   
   1. Adding a new configuration parameter like `use_glue_catalog: true` to indicate that AWS Glue Data Catalog should be used instead of a traditional Hive metastore
   2. Supporting AWS credentials configuration for Glue access
   3. Implementing the necessary code to interact with Glue Data Catalog API instead of the Hive metastore when this option is enabled
   
   ### Benefits
   - Seamless integration with AWS EMR and Glue Data Catalog
   - Better support for AWS ecosystem
   - No need to run a separate Hive metastore service when using AWS Glue
   
   ### Additional Context
   This feature would be particularly valuable for users who are running SeaTunnel in AWS environments and want to leverage the managed Glue Data Catalog service rather than maintaining their own Hive metastore.
   
   ### Usage Scenario
   
   I'm using AWS EMR with Glue Data Catalog as the metastore for my Hive tables. I need to synchronize data from Aurora MySQL to Hive tables using SeaTunnel, but the current Hive Sink connector doesn't support Glue Data Catalog integration.
   
   ### Related issues
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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.apache.org

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


Re: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "triones-adam (via GitHub)" <gi...@apache.org>.
triones-adam commented on issue #9856:
URL: https://github.com/apache/seatunnel/issues/9856#issuecomment-3361188987

   any plan for next version 2.14 @zhangzhao2010 


-- 
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: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "dyp12 (via GitHub)" <gi...@apache.org>.
dyp12 commented on issue #9856:
URL: https://github.com/apache/seatunnel/issues/9856#issuecomment-3631083753

   maybe can change hive.metastore.client.factory.class to use AWSGlueDataCatalogHiveClientFactory
   
    https://docs.amazonaws.cn/emr/latest/ReleaseGuide/emr-hive-metastore-glue.html


-- 
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: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on issue #9856:
URL: https://github.com/apache/seatunnel/issues/9856#issuecomment-5351046577

   @zhangzhao2010 @davidzollo @DanielLeens I traced this on the current dev branch before starting the implementation
   
   The first gap is confirmed. Hive sink requires `metastore_uri` so a Glue configuration backed only by `hive-site.xml` fails option validation
   
   Relaxing that validation alone is not enough. `HiveMetaStoreCatalog` creates `RetryingMetaStoreClient` or `HiveMetaStoreClient` directly and does not use `hive.metastore.client.factory.class`. The AWS Glue client also needs its client jar and the patched Hive client factory contract which is not present in the stock Hive 3.1.3 dependency
   
   Can we confirm the intended runtime model
   
   - On EMR rely on the patched Hive and Glue client jars supplied by EMR
   - For Zeta and other deployments require compatible jars from the user or package a supported dependency set in SeaTunnel
   
   For the first slice I suggest using the factory from `hive-site.xml` allowing a missing `metastore_uri` only when that factory is configured failing fast for missing or incompatible classes and keeping the AWS default credential provider chain. Let me know and i can work on this. thanks! 


-- 
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: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "goutamadwant (via GitHub)" <gi...@apache.org>.
goutamadwant commented on issue #9856:
URL: https://github.com/apache/seatunnel/issues/9856#issuecomment-5351302032

   Implemented this through Hive's standard metastore client factory path
   
   - `metastore_uri` is optional when `hive.metastore.client.factory.class` is configured
   - factory settings can come from `hive-site.xml` or `hive.hadoop.conf`
   - existing Thrift metastore behavior is unchanged
   - missing or incompatible factory classes fail during catalog initialization instead of falling back to a local metastore
   - AWS authentication stays with the default credential provider chain
   
   Added focused coverage for the factory path and failure cases and updated the English and Chinese Hive sink docs
   
   PR: #11895 


-- 
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: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "SEZ9 (via GitHub)" <gi...@apache.org>.
SEZ9 commented on issue #9856:
URL: https://github.com/apache/seatunnel/issues/9856#issuecomment-5366252650

   Thanks everyone for the discussion. @goutamadwant has implemented this via Hive's standard metastore client factory path in PR #11895 — `metastore_uri` becomes optional when `hive.metastore.client.factory.class` is configured (via `hive-site.xml` or `hive.hadoop.conf`), existing Thrift metastore behavior is unchanged, and docs and test coverage are included.
   
   @zhangzhao2010 once the PR lands, it would be great if you could verify it against your EMR + Glue Data Catalog setup. Let's continue review in #11895.
   
   <!-- streview-comment:433 -->


-- 
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: [I] [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector [seatunnel]

Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo closed issue #9856: [Feature][Hive Sink] Add support for AWS Glue Data Catalog as metastore in SeaTunnel Hive Sink connector
URL: https://github.com/apache/seatunnel/issues/9856


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