From 3bcfe3a9de2cde67092d0eb13f94d361feab6ec8 Mon Sep 17 00:00:00 2001 From: Wangda Tan Date: Tue, 20 Dec 2016 11:03:29 -0800 Subject: [PATCH] YARN-5706. Fail to launch SLSRunner due to NPE. (Kai Sasaki via wangda) --- hadoop-tools/hadoop-sls/src/main/bin/slsrun.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadoop-tools/hadoop-sls/src/main/bin/slsrun.sh b/hadoop-tools/hadoop-sls/src/main/bin/slsrun.sh index 218dee43fc5..19b5c345321 100644 --- a/hadoop-tools/hadoop-sls/src/main/bin/slsrun.sh +++ b/hadoop-tools/hadoop-sls/src/main/bin/slsrun.sh @@ -71,8 +71,8 @@ function parse_args() function calculate_classpath { hadoop_add_to_classpath_tools hadoop-sls - hadoop_debug "Injecting ${HADOOP_TOOLS_DIR}/sls/html into CLASSPATH" - hadoop_add_classpath "${HADOOP_TOOLS_DIR}/sls/html" + hadoop_debug "Injecting ${HADOOP_TOOLS_HOME}/${HADOOP_TOOLS_DIR}/sls/html into CLASSPATH" + hadoop_add_classpath "${HADOOP_TOOLS_HOME}/${HADOOP_TOOLS_DIR}/sls/html" } function run_simulation() {