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