You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/11/20 14:12:01 UTC

[GitHub] [hudi] garyli1019 commented on a change in pull request #2242: [HUDI-1366] Make deltasteamer support exporting data from hdfs to hudi

garyli1019 commented on a change in pull request #2242:
URL: https://github.com/apache/hudi/pull/2242#discussion_r527715568



##########
File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/deltastreamer/HoodieDeltaStreamer.java
##########
@@ -546,6 +551,9 @@ public DeltaSyncService(Config cfg, JavaSparkContext jssc, FileSystem fs, Config
         cfg.baseFileFormat = meta.getTableConfig().getBaseFileFormat().toString();
         this.cfg.baseFileFormat = cfg.baseFileFormat;
       } else {
+        if (fs.exists(new Path(cfg.targetBasePath))) {
+          fs.delete(new Path(cfg.targetBasePath));

Review comment:
       This API has been deprecated. This operation could fail as well. Maybe we can add some exception message here.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org