MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred minicluster'. (#2077)

(cherry picked from commit 8fd0fdf889)
This commit is contained in:
Masatake Iwasaki 2020-06-20 07:37:55 +09:00
parent 63d236c019
commit 56d72adbdd

View File

@ -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
;;
*)