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.