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:
parent
95fc53f105
commit
b6da97890b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue