Hudi hive sync tool typically handles registration of the dataset into Hive metastore. In case, there are issues with quickstart around this, following page shows commands that can be used to do this manually via beeline.
Add in the packaging/hoodie-hive-bundle/target/hoodie-hive-bundle-0.4.6-SNAPSHOT.jar, so that Hive can read the Hudi dataset and answer the query.
hive>sethive.input.format=org.apache.hadoop.hive.ql.io.HiveInputFormat;hive>sethive.stats.autogather=false;hive>addjarfile:///path/to/hoodie-hive-bundle-0.5.2-SNAPSHOT.jar;Added[file:///path/to/hoodie-hive-bundle-0.5.2-SNAPSHOT.jar] to class pathAddedresources:[file:///path/to/hoodie-hive-bundle-0.5.2-SNAPSHOT.jar]
Then, you need to create a ReadOptimized Hive table as below and register the sample partitions