yuqi1129 commented on code in PR #4658: URL: https://github.com/apache/gravitino/pull/4658#discussion_r1734203302
########## docs/trino-connector/catalog-hive.md: ########## @@ -302,3 +302,47 @@ replacing hdfs_user with the appropriate username: ```text -DHADOOP_USER_NAME=hdfs_user ``` + +## S3 + +When using AWS S3 within the Hive catalog, users need to configure the Trino Hive connector's +AWS S3-related properties in the catalog's properteis. Please refer to the documentation +of [Hive connector with Amazon S3](https://trino.io/docs/435/connector/hive-s3.html). + +To create a Hive catalog with AWS S3 configuration in the Trino CLI, use the following command: + +```sql +call gravitino.system.create_catalog( + 'gt_hive', + 'hive', + map( + array['metastore.uris', + 'trino.bypass.hive.s3.aws-access-key', 'trino.bypass.hive.s3.aws-secret-key', 'trino.bypass.hive.s3.region' + ], + array['thrift://hive:9083', 'XXXX', 'XXX', 'XXX'] Review Comment: Better to relace 'xxxx' to `aws-access-key-value` or something similar, then users can get the placeholder clearly. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
