From 0dff4d5054ed0c98578a8ac890bec7dcb3fad5f7 Mon Sep 17 00:00:00 2001 From: "Albert T. Wong" Date: Wed, 5 Jun 2024 08:39:09 -0700 Subject: [PATCH] Update hms.md moved HMS config up. --- website/docs/hms.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/website/docs/hms.md b/website/docs/hms.md index ec7d50a42..b05c93b0b 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="example for s3 with HMS" +cd $HUDI_HOME/hudi-sync/hudi-hive-sync ; \ +./run_sync_tool.sh \ +--metastore-uris 'thrift://hive-metastore:9083' \ +--partitioned-by city \ +--base-path 's3a://warehouse/people' \ +--database hudi_db \ +--table people \ +--sync-mode hms +``` + ```shell md title="shell" cd $HUDI_HOME/hudi-sync/hudi-hive-sync @@ -127,16 +138,6 @@ cd $HUDI_HOME/hudi-sync/hudi-hive-sync --table ``` -```shell md title="example for s3 with HMS" -./run_sync_tool.sh \ ---metastore-uris 'thrift://hive-metastore:9083' \ ---partitioned-by city \ ---base-path 's3a://warehouse/people' \ ---database hudi_db \ ---table people \ ---sync-mode hms -``` - :::note Note: Replace `file:///path/to/source/data` to appropriate source data path if you have your source table in S3/GCS/ADLS i.e.