Repository: ambari Updated Branches: refs/heads/branch-2.0.0 2109123cf -> 1213e2e45
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/1213e2e4 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/1213e2e4 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/1213e2e4 Branch: refs/heads/branch-2.0.0 Commit: 1213e2e454100a27b6c9508391e03a70673d29a2 Parents: 2109123 Author: Andrew Onishuk <[email protected]> Authored: Sun Mar 1 12:24:23 2015 +0200 Committer: Andrew Onishuk <[email protected]> Committed: Sun Mar 1 12:24:23 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/1213e2e4/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
