diff --git a/rebalance-new-cluster.sh b/rebalance-new-cluster.sh index 17bef2ad56..ccd362a06e 100755 --- a/rebalance-new-cluster.sh +++ b/rebalance-new-cluster.sh @@ -15,9 +15,9 @@ # See the License for the specific language governing permissions and # limitations under the License. -# This script generates a final cluster.xml for spinning up a new cluster. +# This script generates a final-cluster.xml for spinning up a new cluster. # Argument = -v vold_home -c current_cluster -s current_stores -o output dir -# The final cluster is placed in output_dir/step3 +# The final cluster is placed in output_dir/ # This script uses getopts which means only single character switches are allowed. # Using getopt would allow for multi charcter switch names but would come at a @@ -41,7 +41,7 @@ EOF exit 1 } -# initiliaze varibles to an empty string +# initialize varibles to an empty string vold_home="" current_cluster="" current_stores="" @@ -146,3 +146,6 @@ $vold_home/bin/run-class.sh voldemort.tools.RepartitionerCLI \ --attempts 4 \ --output-dir $output_dir/step3/ \ +echo "[rebalance-new-cluster] Placing final-cluster.xml in '$output_dir'" +cp $output_dir/step3/final-cluster.xml $output_dir/final-cluster.xml + diff --git a/rebalance-zone-expansion.sh b/rebalance-zone-expansion.sh index f37f4775ad..de9d62b2b3 100755 --- a/rebalance-zone-expansion.sh +++ b/rebalance-zone-expansion.sh @@ -19,7 +19,8 @@ # Using getopt would allow for multi charcter switch names but would come at a # cost of not being cross compatibility. -# This script generates a cluster.xml and a plan for the zone expansion +# This script generates a cluster.xml and a plan for the zone expansion. +# The final cluster is placed in output_dir/ # Argument = -v vold_home -c current_cluster -s current_stores -i interim_cluster -f final_stores # -o output dir @@ -172,4 +173,6 @@ $vold_home/bin/run-class.sh voldemort.tools.RebalancePlanCLI \ --final-stores $final_stores \ --output-dir $output_dir/step3/ | tee $output_dir/step3/plan.txt +echo "[rebalance-new-cluster] Placing final-cluster.xml in '$output_dir'" +cp $output_dir/step3/final-cluster.xml $output_dir/final-cluster.xml \ No newline at end of file