MAPREDUCE-7281. Fix NoClassDefFoundError on 'mapred minicluster'. (#2077)
(cherry picked from commit 8fd0fdf889
)
This commit is contained in:
parent
63d236c019
commit
56d72adbdd
|
@ -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
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in New Issue