You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/08/04 17:32:56 UTC

[1/2] ambari git commit: AMBARI-12632. NFSGateway fails to start on Centos6 (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 ad6c5c88d -> f6154f83c
  refs/heads/trunk 5dbb0e1b8 -> 5da545625


AMBARI-12632. NFSGateway fails to start on Centos6 (aonishuk)


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

Branch: refs/heads/trunk
Commit: 5da5456256d8a59c75e6a8f5e4cebef25af744b6
Parents: 5dbb0e1
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Aug 4 18:21:06 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Aug 4 18:21:06 2015 +0300

----------------------------------------------------------------------
 .../HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/5da54562/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
index efebfc5..d874b2e 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
@@ -46,8 +46,8 @@ def prepare_rpcbind():
 
   if p!=0 and q!=0 :
     Logger.info("no portmap or rpcbind running. starting one...")
-    p, output = shell.call("service rpcbind start")
-    q, output = shell.call("service portmap start")
+    p, output = shell.call(("service", "rpcbind", "start"), sudo=True)
+    q, output = shell.call(("service", "portmap", "start"), sudo=True)
     if p!=0 and q!=0 :
       raise Fail("Failed to start rpcbind or portmap")
 


[2/2] ambari git commit: AMBARI-12632. NFSGateway fails to start on Centos6 (aonishuk)

Posted by ao...@apache.org.
AMBARI-12632. NFSGateway fails to start on Centos6 (aonishuk)


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

Branch: refs/heads/branch-2.1
Commit: f6154f83ce8cc3bfa11b7d4ddf8c24a17074d7f7
Parents: ad6c5c8
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue Aug 4 18:21:09 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue Aug 4 18:21:09 2015 +0300

----------------------------------------------------------------------
 .../HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py            | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f6154f83/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
index efebfc5..d874b2e 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_nfsgateway.py
@@ -46,8 +46,8 @@ def prepare_rpcbind():
 
   if p!=0 and q!=0 :
     Logger.info("no portmap or rpcbind running. starting one...")
-    p, output = shell.call("service rpcbind start")
-    q, output = shell.call("service portmap start")
+    p, output = shell.call(("service", "rpcbind", "start"), sudo=True)
+    q, output = shell.call(("service", "portmap", "start"), sudo=True)
     if p!=0 and q!=0 :
       raise Fail("Failed to start rpcbind or portmap")