HDFS-14638. [Dynamometer] Fix scripts to refer to current build structure. (#1673)
This commit is contained in:
parent
a1b4eebcc9
commit
b41394eec8
@ -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 "$@"
|
||||
|
@ -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 "$@"
|
||||
|
@ -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 "$@"
|
||||
|
Loading…
Reference in New Issue
Block a user