Update storm scripts to work with new storm

The java package names changed from 'backtype..'
to 'org.apache..'.  This change will work for both
old (0.9) and new (1.0) versions of storm.

Change-Id: Ibf19508ee5a190e6091212bbc8c8d340d5441848
This commit is contained in:
Brad Klein 2016-07-14 12:15:21 -06:00
parent 1c53d1f872
commit 5ea6af70b0
1 changed files with 4 additions and 4 deletions

View File

@ -27,9 +27,9 @@ start() {
stop() {
echo "Shutting down $desc (storm-$stormSvc): "
if [ $stormSvc == "ui" ]; then
procname="backtype.storm.ui.core"
procname="storm.ui.core"
else
procname="backtype.storm.daemon.$stormSvc"
procname="storm.daemon.$stormSvc"
fi
pkill -f $procname
@ -42,9 +42,9 @@ restart() {
status() {
if [ $stormSvc == "ui" ]; then
pid=$(pgrep -f backtype.storm.ui.core)
pid=$(pgrep -f storm.ui.core)
else
pid=$(pgrep -f backtype.storm.daemon.$stormSvc)
pid=$(pgrep -f storm.daemon.$stormSvc)
fi
if [ -z $pid ]; then