manishgaurav84 opened a new issue, #7835: URL: https://github.com/apache/hudi/issues/7835
**_Tips before filing an issue_** - Have you gone through our [FAQs](https://hudi.apache.org/learn/faq/)? YES - Join the mailing list to engage in conversations and get faster support at [email protected]. - If you have triaged this as a bug, then file an [issue](https://issues.apache.org/jira/projects/HUDI/issues) directly. **Describe the problem you faced** Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately. **To Reproduce** dataset_path = 's3://ds-dl-processed/test-tushar/test-bootstrap/v2/BANKSTATEMENT/' bootstrap_path = 's3://ds-dl-processed/test-tushar/test-bootstrap/v2/bootstraped/BANKSTATEMENT/' HUDI_FORMAT = "org.apache.hudi" TABLE_NAME = "hoodie.table.name" RECORDKEY_FIELD_OPT_KEY = "hoodie.datasource.write.recordkey.field" PRECOMBINE_FIELD_OPT_KEY = "hoodie.datasource.write.precombine.field" BOOTSTRAP_BASE_PATH_PROP= "hoodie.bootstrap.base.path" PARTITIONPATH_FIELD_OPT_KEY="hoodie.datasource.write.partitionpath.field" BOOTSTRAP_KEYGEN_CLASS="hoodie.bootstrap.keygen.class" BOOTSTRAP_MODE_SELECTOR="hoodie.bootstrap.mode.selector" SIMPLE_KEY_GENERATOR_CLASS='org.apache.hudi.keygen.SimpleKeyGenerator' METADATA_ONLY_BOOTSTRAP_INPUT_PROVIDER_CLASS_NAME='org.apache.hudi.client.bootstrap.selector.MetadataOnlyBootstrapModeSelector' df = spark.read.parquet(dataset_path) df.write.format("hudi") .option(TABLE_NAME, "BANKSTATEMENT") .option(BOOTSTRAP_MODE_SELECTOR,METADATA_ONLY_BOOTSTRAP_INPUT_PROVIDER_CLASS_NAME) .option(PRECOMBINE_FIELD_OPT_KEY,"upsert_ts") .option(RECORDKEY_FIELD_OPT_KEY, "uniqueid") .option(BOOTSTRAP_BASE_PATH_PROP, path) .option(BOOTSTRAP_KEYGEN_CLASS, SIMPLE_KEY_GENERATOR_CLASS) .mode('Overwrite') .save(bootstrap_path) **Expected behavior** When bootstrap.mode.selector is set as MetadataOnlyBootstrapModeSelector, it is expected to write only the metadata for the parquet data set. **Environment Description** * Hudi version : 0.12.2 * Spark version : 3.1.2 * Hive version : Hive MetaStore on AWS Glue * Hadoop version : NA * Storage (HDFS/S3/GCS..) : s3 * Running on Docker? (yes/no) : NO **Additional context** Environment: AWS Glue 3.0 Add any other context about the problem here. **Stacktrace** ```Add the stacktrace of the error.``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
