From b1fabda763bd6f3041fbbb08943c85b9f7765a8b Mon Sep 17 00:00:00 2001 From: Chao Sun Date: Thu, 16 Aug 2018 11:11:41 -0700 Subject: [PATCH] Closes #57. Overwrite existing files when uploading FSImage. --- dynamometer-infra/src/main/bash/upload-fsimage.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamometer-infra/src/main/bash/upload-fsimage.sh b/dynamometer-infra/src/main/bash/upload-fsimage.sh index 1ccecab465..701626d651 100755 --- a/dynamometer-infra/src/main/bash/upload-fsimage.sh +++ b/dynamometer-infra/src/main/bash/upload-fsimage.sh @@ -61,7 +61,7 @@ if ! hdfs dfs -mkdir -p "$remote_dir"; then fi for file in ${image_file} ${image_file_xml} ${image_file_md5} ${version_file}; do echo "Uploading ${file}..." - if ! hdfs dfs -copyFromLocal "$file" "${remote_dir}"; then + if ! hdfs dfs -copyFromLocal -f "$file" "${remote_dir}"; then echo "Error while uploading ${file}; exiting" rm -rf "${tmp_dir}" exit 1