incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jiten...@apache.org
Subject svn commit: r1377109 - in /incubator/ambari/trunk: CHANGES.txt hmc/puppet/modules/hdp-hive/manifests/service.pp
Date Fri, 24 Aug 2012 20:58:20 GMT
Author: jitendra
Date: Fri Aug 24 20:58:20 2012
New Revision: 1377109

URL: http://svn.apache.org/viewvc?rev=1377109&view=rev
Log:
AMBARI-681. Stopping of hive server fails. 

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/hmc/puppet/modules/hdp-hive/manifests/service.pp

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1377109&r1=1377108&r2=1377109&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Fri Aug 24 20:58:20 2012
@@ -156,6 +156,8 @@ Trunk (unreleased changes)
     AMBARI-614. The database set up script has a duplicate definition of
     AmbariConfig so install fails (yusaku) 
 
+    AMBARI-681. Stopping of hive server fails. (jitendra)
+
 Release 0.9.0
 
   AMBARI-675. Make puppet generate more logs on command failures (hitesh)

Modified: incubator/ambari/trunk/hmc/puppet/modules/hdp-hive/manifests/service.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/hmc/puppet/modules/hdp-hive/manifests/service.pp?rev=1377109&r1=1377108&r2=1377109&view=diff
==============================================================================
--- incubator/ambari/trunk/hmc/puppet/modules/hdp-hive/manifests/service.pp (original)
+++ incubator/ambari/trunk/hmc/puppet/modules/hdp-hive/manifests/service.pp Fri Aug 24 20:58:20
2012
@@ -35,8 +35,8 @@ class hdp-hive::service(
     $no_op_test = "ls ${pid_file} >/dev/null 2>&1 && ps `cat ${pid_file}`
>/dev/null 2>&1"
   } elsif ($ensure == 'stopped') {
     #TODO: this needs to be fixed
-    $daemon_cmd = "ps aux | awk '{print \$1,\$2}' | grep ${user} | awk '{print \$2}' | xargs
kill >/dev/null 2>&1"
-    $no_op_test = "ps aux | grep -i [h]ive"
+    $daemon_cmd = "ps aux | awk '{print \$1,\$2}' | grep \"^${user} \" | awk '{print \$2}'
| xargs kill >/dev/null 2>&1"
+    $no_op_test = "ps aux | awk '{print \$1,\$2}' | grep \"^${user} \""
   } else {
     $daemon_cmd = undef
   }



Mime
View raw message