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

roryqi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-uniffle.git


The following commit(s) were added to refs/heads/master by this push:
     new 54c81f06 [MINOR] fix(mr): fix default value (#1035)
54c81f06 is described below

commit 54c81f063881f3a4359cccba842b35fef43f2b86
Author: zhengchenyu <[email protected]>
AuthorDate: Wed Aug 2 17:26:05 2023 +0800

    [MINOR] fix(mr): fix default value (#1035)
    
    ### What changes were proposed in this pull request?
    
    When configured as README.md, MapReduce will throw these errors. It is not 
helpful for beginner.
    ```
    Exception in thread "main" java.lang.IllegalArgumentException: 
mapreduce.rss.client.retry.max(100) * 
mapreduce.rss.client.retry.interval.max(10000) should not bigger than 
mapreduce.rss.client.send.check.timeout.ms(600000)
            at 
org.apache.hadoop.mapreduce.RssMRUtils.validateRssClientConf(RssMRUtils.java:307)
            at 
org.apache.hadoop.mapreduce.v2.app.RssMRAppMaster.main(RssMRAppMaster.java:189)
    ```
    and
    ```
    Exception in thread "main" java.lang.IllegalArgumentException: The value of 
null should be one of [GRPC_NETTY, GRPC]
            at 
org.apache.uniffle.client.util.ClientUtils.validateClientType(ClientUtils.java:144)
            at 
org.apache.hadoop.mapreduce.v2.app.RssMRAppMaster.main(RssMRAppMaster.java:141)
    ```
    
    ### How was this patch tested?
    
    test in yarn cluster.
---
 README.md                                                              | 2 +-
 .../main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java   | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 500a98cc..c240b74b 100644
--- a/README.md
+++ b/README.md
@@ -167,7 +167,7 @@ rss-xxx.tgz will be generated for deployment
     # multiple remote storages are supported, and client will get assignment 
from coordinator
     rss.coordinator.remote.storage.path 
hdfs://cluster1/path,hdfs://cluster2/path
     rss.writer.require.memory.retryMax 1200
-    rss.client.retry.max 100
+    rss.client.retry.max 50
     rss.writer.send.check.timeout 600000
     rss.client.read.buffer.size 14m
    ```
diff --git 
a/client-mr/core/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java
 
b/client-mr/core/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java
index 7bf0973c..626e88e8 100644
--- 
a/client-mr/core/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java
+++ 
b/client-mr/core/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java
@@ -137,7 +137,8 @@ public class RssMRAppMaster extends MRAppMaster {
         assignmentTags.addAll(Arrays.asList(rawTags.split(",")));
       }
       assignmentTags.add(Constants.SHUFFLE_SERVER_VERSION);
-      String clientType = conf.get(RssMRConfig.RSS_CLIENT_TYPE);
+      String clientType =
+          conf.get(RssMRConfig.RSS_CLIENT_TYPE, 
RssMRConfig.RSS_CLIENT_TYPE_DEFAULT_VALUE);
       ClientUtils.validateClientType(clientType);
       assignmentTags.add(clientType);
 

Reply via email to