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/03/01 11:21:48 UTC
ambari git commit: AMBARI-9828. Ability to handle envs where sudo is
not available (aonishuk)
Repository: ambari
Updated Branches:
refs/heads/trunk faa4e2703 -> 965676cbd
AMBARI-9828. Ability to handle envs where sudo is not available (aonishuk)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/965676cb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/965676cb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/965676cb
Branch: refs/heads/trunk
Commit: 965676cbdd6e04be3c8f5b629fa1a1f70a7bd2ed
Parents: faa4e27
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Sun Mar 1 12:21:07 2015 +0200
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Sun Mar 1 12:21:07 2015 +0200
----------------------------------------------------------------------
.../HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/965676cb/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
index f1d0b87..32240a1 100644
--- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
+++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
@@ -213,7 +213,7 @@ def is_namenode_formatted(params):
for old_mark_dir in old_mark_dirs:
if os.path.isdir(old_mark_dir):
for mark_dir in mark_dirs:
- Execute(['cp', '-ar', old_mark_dir, mark_dir],
+ Execute(('cp', '-ar', old_mark_dir, mark_dir),
sudo = True
)
marked = True