Skip to content

Commit

Permalink
Update hms.md
Browse files Browse the repository at this point in the history
Update hms.md
  • Loading branch information
alberttwong committed Jun 5, 2024
1 parent b58175b commit 36cc6cb
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion 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="shell with HMS example"
cd $HUDI_HOME/hudi-sync/hudi-hive-sync ; \
./run_sync_tool.sh \
--metastore-uris '<thrift_url>' \
--partitioned-by <partition_field> \
--base-path '<path/to/s3/synced/hudi/table>' \
--database <database_name> \
--table <tableName> \
--sync-mode hms
```

```shell md title="shell"
cd $HUDI_HOME/hudi-sync/hudi-hive-sync
Expand All @@ -122,7 +133,7 @@ cd $HUDI_HOME/hudi-sync/hudi-hive-sync
--user <username> \
--pass <password> \
--partitioned-by <partition_field> \
--base-path <'/path/to/synced/hudi/table'> \
--base-path '<path/to/synced/hudi/table>' \
--database <database_name> \
--table <tableName>
```
Expand Down Expand Up @@ -218,6 +229,14 @@ using query engines like `Presto` and/or `Trino`. Check out the guides for query
SELECT * FROM iceberg_db.<table_name>;
```

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

</TabItem>
</Tabs>

Expand Down

0 comments on commit 36cc6cb

Please sign in to comment.