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:57 UTC
[2/2] ambari git commit: AMBARI-12632. NFSGateway fails to start on
Centos6 (aonishuk)
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")