HDFS-14638. [Dynamometer] Fix scripts to refer to current build structure. (#1673)

This commit is contained in:
Takanobu Asanuma 2019-10-25 08:25:31 +09:00 committed by Wei-Chiu Chuang
parent a1b4eebcc9
commit b41394eec8
3 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ else
exit 1
fi
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../.."
for f in ${script_pwd}/lib/*.jar; do
# Skip adding the blockgen JAR since it is added by the `hadoop jar` command
@ -34,5 +34,5 @@ for f in ${script_pwd}/lib/*.jar; do
export HADOOP_CLASSPATH="$HADOOP_CLASSPATH:$f"
fi
done
"$hadoop_cmd" jar "${script_pwd}"/lib/dynamometer-blockgen-*.jar \
"$hadoop_cmd" jar "${script_pwd}"/lib/hadoop-dynamometer-blockgen-*.jar \
org.apache.hadoop.tools.dynamometer.blockgenerator.GenerateBlockImagesDriver "$@"

View File

@ -30,7 +30,7 @@ else
exit 1
fi
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../.."
for f in ${script_pwd}/lib/*.jar; do
# Skip adding the infra JAR since it is added by the `hadoop jar` command
@ -38,4 +38,4 @@ for f in ${script_pwd}/lib/*.jar; do
export HADOOP_CLASSPATH="$HADOOP_CLASSPATH:$f"
fi
done
"$hadoop_cmd" jar "${script_pwd}"/lib/dynamometer-infra-*.jar org.apache.hadoop.tools.dynamometer.Client "$@"
"$hadoop_cmd" jar "${script_pwd}"/lib/hadoop-dynamometer-infra-*.jar org.apache.hadoop.tools.dynamometer.Client "$@"

View File

@ -30,7 +30,7 @@ else
exit 1
fi
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/.."
script_pwd="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../../.."
for f in ${script_pwd}/lib/*.jar; do
# Skip adding the workload JAR since it is added by the `hadoop jar` command
@ -38,5 +38,5 @@ for f in ${script_pwd}/lib/*.jar; do
export HADOOP_CLASSPATH="$HADOOP_CLASSPATH:$f"
fi
done
"$hadoop_cmd" jar "${script_pwd}"/lib/dynamometer-workload-*.jar \
"$hadoop_cmd" jar "${script_pwd}"/lib/hadoop-dynamometer-workload-*.jar \
org.apache.hadoop.tools.dynamometer.workloadgenerator.WorkloadDriver "$@"