Apache Solr open-source search software
SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of yarn.
Mark Miller872b0dba2d38
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 1192d36feda..a2dc8201bcf 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -250,6 +250,9 @@ Bug Fixes* SOLR-10719: Creating a core.properties fails if the parent of core.properties is a symlinked dierctory(Erick Erickson)+* SOLR-10360: Solr HDFS snapshot export fails due to FileNotFoundException error when using MR1 instead of+ yarn. (Hrishikesh via Mark Miller)+Optimizations----------------------* SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)diff --git a/solr/server/scripts/cloud-scripts/snapshotscli.sh b/solr/server/scripts/cloud-scripts/snapshotscli.shindex 41ae4aa0321..f885721f660 100755--- a/solr/server/scripts/cloud-scripts/snapshotscli.sh+++ b/solr/server/scripts/cloud-scripts/snapshotscli.sh@@ -86,7 +86,7 @@ copy_snapshot_files() {for shardId in $(hdfs dfs -stat "%n" "${copylisting_dir_path}/*"); dooPath="${destPath}/${snapshotName}/snapshot.${shardId}"echo "Copying the index files for ${shardId} to ${oPath}"- ${distCpCmd} -f " ${copylisting_dir_path}/${shardId}" "${oPath}" > /dev/null+ ${distCpCmd} -f "${copylisting_dir_path}/${shardId}" "${oPath}" > /dev/nulldoneelseecho "Directory ${copylisting_dir_path} does not exist."