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

This commit is contained in:
Masatake Iwasaki 2020-06-20 07:37:55 +09:00 committed by GitHub
parent 100ec8e870
commit 8fd0fdf889
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -105,6 +105,8 @@ function mapredcmd_case
minicluster) minicluster)
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_DIR}/timelineservice"'/*' hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_DIR}/timelineservice"'/*'
hadoop_add_classpath "${HADOOP_YARN_HOME}/${YARN_DIR}/test"'/*' 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 HADOOP_CLASSNAME=org.apache.hadoop.mapreduce.MiniHadoopClusterManager
;; ;;
*) *)