You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "manishgaurav84 (via GitHub)" <gi...@apache.org> on 2023/02/03 01:48:19 UTC
[GitHub] [hudi] manishgaurav84 opened a new issue, #7835: [SUPPORT]
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 dev-subscribe@hudi.apache.org.
- 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: commits-unsubscribe@hudi.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] xushiyan commented on issue #7835: [SUPPORT] Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately
Posted by "xushiyan (via GitHub)" <gi...@apache.org>.
xushiyan commented on issue #7835:
URL: https://github.com/apache/hudi/issues/7835#issuecomment-1428677586
cc @lokeshj1703
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] codope closed issue #7835: [SUPPORT] Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope closed issue #7835: [SUPPORT] Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately
URL: https://github.com/apache/hudi/issues/7835
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] KnightChess commented on issue #7835: [SUPPORT] Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately
Posted by "KnightChess (via GitHub)" <gi...@apache.org>.
KnightChess commented on issue #7835:
URL: https://github.com/apache/hudi/issues/7835#issuecomment-1429116011
what abount set operation type bootstrap, look like this parameter be missing, `DataSourceWriteOptions.OPERATION_OPT_KEY, DataSourceWriteOptions.BOOTSTRAP_OPERATION_OPT_VAL`
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [hudi] codope commented on issue #7835: [SUPPORT] Hudi bootstrapping with METADATA_ONLY option is re-writing the complete dataset instead of just creating HUDI metadata skeleton files separately
Posted by "codope (via GitHub)" <gi...@apache.org>.
codope commented on issue #7835:
URL: https://github.com/apache/hudi/issues/7835#issuecomment-1455104746
@manishgaurav84 Setting the operation type as suggested above should work. Please reopen if it doesn't.
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org