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 95fc53f105
commit b6da97890b
2 changed files with 10 additions and 2 deletions

View File

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