HBASE-12969 Parameter Validation is not there for shell script, local-master-backup.sh and local-regionservers.sh

Signed-off-by: Andrew Purtell <apurtell@apache.org>
This commit is contained in:
Y. SREENIVASULU REDDY 2015-02-04 16:31:53 +05:30 committed by Andrew Purtell
parent 668ab35649
commit f7c35f8b53
2 changed files with 10 additions and 2 deletions

View File

@ -54,5 +54,9 @@ shift;
for i in $*
do
if [[ "$i" =~ ^[0-9]+$ ]]; then
run_master $cmd $i
else
echo "Invalid argument"
fi
done

View File

@ -52,5 +52,9 @@ shift;
for i in $*
do
if [[ "$i" =~ ^[0-9]+$ ]]; then
run_regionserver $cmd $i
else
echo "Invalid argument"
fi
done