incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smoha...@apache.org
Subject git commit: AMBARI-3293. Hive Metastore and Hive server2 are started as root user after the cluster install using ambari.
Date Thu, 19 Sep 2013 20:27:11 GMT
Updated Branches:
  refs/heads/branch-1.4.1 07f7b4ce0 -> 8382be77f


AMBARI-3293. Hive Metastore and Hive server2 are started as root user after the cluster install
using ambari.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ambari/commit/8382be77
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ambari/tree/8382be77
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ambari/diff/8382be77

Branch: refs/heads/branch-1.4.1
Commit: 8382be77f7fca24efb7fa7bdd741393116c0dadd
Parents: 07f7b4c
Author: Sumit Mohanty <smohanty@hortonworks.com>
Authored: Thu Sep 19 13:25:23 2013 -0700
Committer: Sumit Mohanty <smohanty@hortonworks.com>
Committed: Thu Sep 19 13:26:52 2013 -0700

----------------------------------------------------------------------
 ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/8382be77/ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp b/ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp
index 038fdbb..a67b8b1 100644
--- a/ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp
+++ b/ambari-agent/src/main/puppet/modules/hdp-hive/manifests/service.pp
@@ -53,7 +53,7 @@ class hdp-hive::service(
   $no_op_test = "ls ${pid_file} >/dev/null 2>&1 && ps `cat ${pid_file}`
>/dev/null 2>&1"
 
   if ($ensure == 'running') {
-    $daemon_cmd = "su - ${user} -c  '${cmd} '"
+    $daemon_cmd = "su - ${hive_user} -c  '${cmd} '"
   } elsif ($ensure == 'stopped') {
     $daemon_cmd = "kill `cat $pid_file` >/dev/null 2>&1 && rm -f ${pid_file}"
   } else {


Mime
View raw message