From 36cc6cb422cc28a3f41386e3fc24db81f7de801a Mon Sep 17 00:00:00 2001 From: "Albert T. Wong" Date: Tue, 4 Jun 2024 08:01:17 -0700 Subject: [PATCH 1/2] Update hms.md Update hms.md --- website/docs/hms.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/website/docs/hms.md b/website/docs/hms.md index 2698c839f..73787d5cf 100644 --- a/website/docs/hms.md +++ b/website/docs/hms.md @@ -114,6 +114,17 @@ A Hudi table can directly be synced to the Hive Metastore using Hive Sync Tool and subsequently be queried by different query engines. For more information on the Hive Sync Tool, check [Hudi Hive Metastore](https://hudi.apache.org/docs/syncing_metastore) docs. +```shell md title="shell with HMS example" +cd $HUDI_HOME/hudi-sync/hudi-hive-sync ; \ +./run_sync_tool.sh \ +--metastore-uris '' \ +--partitioned-by \ +--base-path '' \ +--database \ +--table \ +--sync-mode hms +``` + ```shell md title="shell" cd $HUDI_HOME/hudi-sync/hudi-hive-sync @@ -122,7 +133,7 @@ cd $HUDI_HOME/hudi-sync/hudi-hive-sync --user \ --pass \ --partitioned-by \ ---base-path <'/path/to/synced/hudi/table'> \ +--base-path '' \ --database \ --table ``` @@ -218,6 +229,14 @@ using query engines like `Presto` and/or `Trino`. Check out the guides for query SELECT * FROM iceberg_db.; ``` +```sql md title="sql for Iceberg, Hudi and Delta Lake in S3" +select * from hudi.hudi_db.people; +select * from delta.delta_db.people; +select * from iceberg.iceberg_db.people; +``` + +In the example demo docker image, you can find the catalog configurations. + From bf868c379f23ee2c40db696ff77d3edd43e2c78b Mon Sep 17 00:00:00 2001 From: "Albert T. Wong" Date: Tue, 30 Jul 2024 17:17:37 -0700 Subject: [PATCH 2/2] Update hms.md --- website/docs/hms.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/hms.md b/website/docs/hms.md index 73787d5cf..030b24b2c 100644 --- a/website/docs/hms.md +++ b/website/docs/hms.md @@ -87,7 +87,7 @@ datasets: ::: From your terminal under the cloned Apache XTableâ„¢ (Incubating) directory, run the sync process using the below command. -```shell md title="shell" +```shell in JDBC md title="shell in JDBC" java -jar xtable-utilities/target/xtable-utilities-0.1.0-SNAPSHOT-bundled.jar --datasetConfig my_config.yaml ```