Skip to content

Commit

Permalink
Update hms.md
Browse files Browse the repository at this point in the history
moved HMS config up.
  • Loading branch information
alberttwong committed Jun 5, 2024
1 parent 193fe16 commit 0dff4d5
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions website/docs/hms.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -127,16 +138,6 @@ cd $HUDI_HOME/hudi-sync/hudi-hive-sync
--table <tableName>
```

```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.
Expand Down

0 comments on commit 0dff4d5

Please sign in to comment.