Gatsby-Lee commented on issue #11640:
URL: https://github.com/apache/hudi/issues/11640#issuecomment-2242086743
@xushiyan Actually, the logic checking the target path already exists.
This logic has helped prevent overwriting the existing target path.
So, I think updating the logic to the "overwrite=true" might be enough
change.
What do you think?
```
public void export(JavaSparkContext jsc, Config cfg) throws IOException {
FileSystem outputFs = HadoopFSUtils.getFs(cfg.targetOutputPath,
jsc.hadoopConfiguration());
if (outputFs.exists(new Path(cfg.targetOutputPath))) {
throw new HoodieSnapshotExporterException("The target output path
already exists.");
}
```
--
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]