From 5ea6af70b0f2393385b7be35205796eac12ff8e7 Mon Sep 17 00:00:00 2001 From: Brad Klein Date: Thu, 14 Jul 2016 12:15:21 -0600 Subject: [PATCH] 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 --- templates/storm-startup-script.erb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/templates/storm-startup-script.erb b/templates/storm-startup-script.erb index 13569fd..65a53c3 100644 --- a/templates/storm-startup-script.erb +++ b/templates/storm-startup-script.erb @@ -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