You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by bu...@apache.org on 2013/11/05 21:39:21 UTC
svn commit: r1539123 - in /uima/sandbox/uima-ducc/trunk/src/main/admin:
check_ducc ducc_util.py start_ducc
Author: burn
Date: Tue Nov 5 20:39:20 2013
New Revision: 1539123
URL: http://svn.apache.org/r1539123
Log:
UIMA-3371 If the DUCC broker fails to start suggest checking the broker log file
Modified:
uima/sandbox/uima-ducc/trunk/src/main/admin/check_ducc
uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py
uima/sandbox/uima-ducc/trunk/src/main/admin/start_ducc
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/check_ducc
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/check_ducc?rev=1539123&r1=1539122&r2=1539123&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/check_ducc (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/check_ducc Tue Nov 5 20:39:20 2013
@@ -231,7 +231,7 @@ class CheckDucc(DuccUtil):
return
if ( not self.verify_activemq() ):
- print 'ActiveMQ is not running on', self.broker_protocol + "://" + self.broker_host + ':' + self.broker_port
+ print 'ActiveMQ broker is not running on', self.broker_protocol + "://" + self.broker_host + ':' + self.broker_port
# init the PID file
self.pids = DuccProperties()
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py?rev=1539123&r1=1539122&r2=1539123&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/ducc_util.py Tue Nov 5 20:39:20 2013
@@ -166,7 +166,7 @@ class DuccUtil(DuccBase):
def is_amq_active(self):
netstat = self.find_netstat()
if ( netstat == None ):
- print "Cannot determine if ActiveMq is alive."
+ print "Cannot determine if ActiveMq broker is alive."
return false
lines = self.popen('ssh', self.broker_host, netstat, '-an')
Modified: uima/sandbox/uima-ducc/trunk/src/main/admin/start_ducc
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/src/main/admin/start_ducc?rev=1539123&r1=1539122&r2=1539123&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/src/main/admin/start_ducc (original)
+++ uima/sandbox/uima-ducc/trunk/src/main/admin/start_ducc Tue Nov 5 20:39:20 2013
@@ -38,7 +38,7 @@ class StartDucc(DuccUtil):
def start_broker(self):
broker_host = self.ducc_properties.get('ducc.broker.hostname')
- print 'broker host', broker_host
+ print 'Starting broker on', broker_host
lines = self.ssh(broker_host, True, "'", self.DUCC_HOME + '/admin/ducc.py', '-c', 'broker', "'")
while 1:
line = lines.readline().strip()
@@ -55,7 +55,7 @@ class StartDucc(DuccUtil):
for i in range(0, 9):
if ( self.is_amq_active() ):
return
- print 'Waiting for broker', str(i)
+ print 'Waiting for broker .....', str(i)
time.sleep(1)
def start_component(self, args):
@@ -309,14 +309,14 @@ class StartDucc(DuccUtil):
# activeMQ needs to be started externally before starting any DUCC processes
if ( self.automanage and ('broker' in components) ):
if ( self.is_amq_active() ):
- print 'ActiveMQ is already running on host and port:', self.broker_host + ':' + self.broker_port, 'NOT restarting'
+ print 'ActiveMQ broker is already running on host and port:', self.broker_host + ':' + self.broker_port, 'NOT restarting'
else:
self.start_broker()
if ( self.is_amq_active() ):
- print 'ActiveMQ is found on configured host and port:', self.broker_host + ':' + self.broker_port
+ print 'ActiveMQ broker is found on configured host and port:', self.broker_host + ':' + self.broker_port
else:
- print 'ActiveMQ cannot be found on configured host and port:', self.broker_host + ':' + self.broker_port
+ print 'ActiveMQ broker cannot be found on', self.broker_host + ':' + self.broker_port, 'check', self.DUCC_HOME+'/activemq/data/activemq.log'
sys.exit(1)
ducc = Ducc()