This is an automated email from the ASF dual-hosted git repository.
codope pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/asf-site by this push:
new 5518aba9fa5 Add another bootstrap method to improve the documentation
(#8205)
5518aba9fa5 is described below
commit 5518aba9fa5c67d27ccc31424e8adebfcd383d76
Author: huangxiaoping <[email protected]>
AuthorDate: Wed Mar 22 15:14:11 2023 +0800
Add another bootstrap method to improve the documentation (#8205)
---
website/versioned_docs/version-0.13.0/migration_guide.md | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/website/versioned_docs/version-0.13.0/migration_guide.md
b/website/versioned_docs/version-0.13.0/migration_guide.md
index 449d65c376a..a4cad93ce4d 100644
--- a/website/versioned_docs/version-0.13.0/migration_guide.md
+++ b/website/versioned_docs/version-0.13.0/migration_guide.md
@@ -78,3 +78,11 @@ fired by via `cd hudi-cli && ./hudi-cli.sh`.
hudi->bootstrap run --srcPath /tmp/source_table --targetPath
/tmp/hoodie/bootstrap_table --tableName bootstrap_table --tableType
COPY_ON_WRITE --rowKeyField ${KEY_FIELD} --partitionPathField
${PARTITION_FIELD} --sparkMaster local --hoodieConfigs
hoodie.datasource.write.hive_style_partitioning=true --selectorClass
org.apache.hudi.client.bootstrap.selector.FullRecordBootstrapModeSelector
```
Unlike deltaStream, FULL_RECORD or METADATA_ONLY is set with --selectorClass,
see detalis with help "bootstrap run".
+
+**Option 4**
+You can load an existing table into a Hudi managed one only through SQL.
+Here is an example of using the `spark-sql` script to execute bootstrap
through the SQL of `call run_bootstrap`
+
+```
+spark-sql> call run_bootstrap(table => 'bootstrap_table',table_type =>
'COPY_ON_WRITE',bootstrap_path => '/tmp/source_table',base_path =>
'/tmp/hoodie/bootstrap_table', rowKey_field =>
'${KEY_FIELD}',partition_path_field => '${PARTITION_FIELD}',selector_class =>
'org.apache.hudi.client.bootstrap.selector.FullRecordBootstrapModeSelector',
bootstrap_overwrite => true);
+```