You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by da...@apache.org on 2024/06/09 01:18:01 UTC

(hudi) branch master updated: [HUDI-7390] HoodieStreamer no longer works without --props being supplied (#11414)

This is an automated email from the ASF dual-hosted git repository.

danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f9064761ba [HUDI-7390] HoodieStreamer no longer works without --props being supplied (#11414)
9f9064761ba is described below

commit 9f9064761bac766cc7884027432568c06817ddd7
Author: Vova Kolmakov <wo...@gmail.com>
AuthorDate: Sun Jun 9 08:17:55 2024 +0700

    [HUDI-7390] HoodieStreamer no longer works without --props being supplied (#11414)
    
    Co-authored-by: Vova Kolmakov <ko...@huawei-partners.com>
---
 .../main/java/org/apache/hudi/utilities/streamer/HoodieStreamer.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/HoodieStreamer.java b/hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/HoodieStreamer.java
index 1905cfe6f31..27db59ab7cd 100644
--- a/hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/HoodieStreamer.java
+++ b/hudi-utilities/src/main/java/org/apache/hudi/utilities/streamer/HoodieStreamer.java
@@ -446,7 +446,7 @@ public class HoodieStreamer implements Serializable {
     }
 
     public static TypedProperties getProps(Configuration conf, Config cfg) {
-      return cfg.propsFilePath.isEmpty()
+      return cfg.propsFilePath.isEmpty() || cfg.propsFilePath.equals(DEFAULT_DFS_SOURCE_PROPERTIES)
           ? buildProperties(cfg.configs)
           : readConfig(conf, new Path(cfg.propsFilePath), cfg.configs).getProps();
     }