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

iwasakims pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 56d72ad  MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred 
minicluster'. (#2077)
56d72ad is described below

commit 56d72adbdd2a1c8647ebd974a2ecb2904f92799c
Author: Masatake Iwasaki <iwasak...@apache.org>
AuthorDate: Sat Jun 20 07:37:55 2020 +0900

    MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred minicluster'. (#2077)
    
    
    (cherry picked from commit 8fd0fdf8890b4c0cf3ea977be8fae8fa17e6599b)
---
 hadoop-mapreduce-project/bin/mapred | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hadoop-mapreduce-project/bin/mapred 
b/hadoop-mapreduce-project/bin/mapred
index 9773ec8..3e52556 100755
--- a/hadoop-mapreduce-project/bin/mapred
+++ b/hadoop-mapreduce-project/bin/mapred
@@ -105,6 +105,8 @@ function mapredcmd_case
     minicluster)
       hadoop_add_classpath 
"${HADOOP_YARN_HOME}/${YARN_DIR}/timelineservice"'/*'
       hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_DIR}/test"'/*'
+      junitjar=$(echo "${HADOOP_TOOLS_LIB_JARS_DIR}"/junit-[0-9]*.jar)
+      hadoop_add_classpath "${junitjar}"
       HADOOP_CLASSNAME=org.apache.hadoop.mapreduce.MiniHadoopClusterManager
     ;;
     *)


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-commits-h...@hadoop.apache.org

Reply via email to