Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 21b319f

Browse files
rui-mophilo-he
authored andcommitted
Refine EC test script with regard to dest dir (#2064)
1 parent 731fa5a commit 21b319f

5 files changed

Lines changed: 7 additions & 7 deletions

File tree

supports/ec-performance-test/config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ HADOOP_HOME=
1616
# The cluster hdfs url for ec performance test, e.g., SRC_CLUSTER=hdfs://sr613:9000
1717
SRC_CLUSTER=
1818

19-
# The dest dir to store the data converted to ec by distcp
19+
# The dest dir to store the data converted to ec by distcp, e.g., DEST_DIR_EC=/dest/ec
2020
DEST_DIR_EC=
2121

22-
# The dest dir to store the data converted to replica by distcp
22+
# The dest dir to store the data converted to replica by distcp, e.g., DEST_DIR_REPLICA=/dest/replica
2323
DEST_DIR_REPLICA=
2424

2525
# The namenode's hostname of src cluster

supports/ec-performance-test/prepare_ec.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ for size in "${!CASES[@]}"; do
77
num=${CASES[$size]}
88
dir="${size}_${num}"
99
# delete historical data
10-
ssh ${SRC_NODE} "hdfs dfs -rm -r /${DEST_DIR_EC}/${dir}; hdfs dfs -mkdir /${DEST_DIR_EC}/${dir}"
10+
ssh ${SRC_NODE} "hdfs dfs -rm -r ${DEST_DIR_EC}/${dir}; hdfs dfs -mkdir ${DEST_DIR_EC}/${dir}"
1111
# set ec policy
12-
ssh ${SRC_NODE} "hdfs ec -setPolicy -path /${DEST_DIR_EC}/${dir}"
12+
ssh ${SRC_NODE} "hdfs ec -setPolicy -path ${DEST_DIR_EC}/${dir}"
1313
done
1414

supports/ec-performance-test/prepare_replica.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
for size in "${!CASES[@]}"; do
77
num=${CASES[$size]}
88
dir="${size}_${num}"
9-
ssh ${SRC_NODE} "hdfs dfs -rm -r /${DEST_DIR_REPLICA}/${dir}; hdfs dfs -mkdir /${DEST_DIR_REPLICA}/${dir}"
9+
ssh ${SRC_NODE} "hdfs dfs -rm -r ${DEST_DIR_REPLICA}/${dir}; hdfs dfs -mkdir ${DEST_DIR_REPLICA}/${dir}"
1010
done
1111

supports/ec-performance-test/test_distcp_ec.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for size in "${!CASES[@]}"; do
2525
sh prepare_ec.sh
2626
cd ${PAT_HOME}/PAT-collecting-data
2727
echo "start_time=\`date +%s\`;\
28-
hadoop distcp -skipcrccheck -m ${MAPPER_NUM} ${SRC_CLUSTER}/${case}/* ${SRC_CLUSTER}/${DEST_DIR}/${case}/ > results/$case_${MAPPER_NUM}_$i.log 2>&1;\
28+
hadoop distcp -skipcrccheck -m ${MAPPER_NUM} ${SRC_CLUSTER}/${case}/* ${SRC_CLUSTER}${DEST_DIR_EC}/${case}/ > results/$case_${MAPPER_NUM}_$i.log 2>&1;\
2929
end_time=\`date +%s\`;\
3030
printf \"\$((end_time-start_time))s \" >> ${log}" > cmd.sh
3131
./pat run "${case}_"ec"_${MAPPER_NUM}_${i}"

supports/ec-performance-test/test_distcp_replica.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for size in "${!CASES[@]}"; do
2525
sh prepare_replica.sh
2626
cd ${PAT_HOME}/PAT-collecting-data
2727
echo "start_time=\`date +%s\`;\
28-
hadoop distcp -skipcrccheck -m ${MAPPER_NUM} ${SRC_CLUSTER}/${DEST_DIR_EC}/${case}/* ${SRC_CLUSTER}/${DEST_DIR_REPLICA}/${case}/ > results/$case_${MAPPER_NUM}_$i.log 2>&1;\
28+
hadoop distcp -skipcrccheck -m ${MAPPER_NUM} ${SRC_CLUSTER}${DEST_DIR_EC}/${case}/* ${SRC_CLUSTER}${DEST_DIR_REPLICA}/${case}/ > results/$case_${MAPPER_NUM}_$i.log 2>&1;\
2929
end_time=\`date +%s\`;\
3030
printf \"\$((end_time-start_time))s \" >> ${log}" > cmd.sh
3131
./pat run "${case}_"replica"_${MAPPER_NUM}_${i}"

0 commit comments

Comments
 (0)