Repository: ambari Updated Branches: refs/heads/branch-2.5 7cbad939f -> bc37bf748
AMBARI-20472 MapRed History server start does not create directories in HDFS when WEBHDFS is disabled (dili) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/bc37bf74 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/bc37bf74 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/bc37bf74 Branch: refs/heads/branch-2.5 Commit: bc37bf748d43a823d67596d62c3b0b3e17db3128 Parents: 7cbad93 Author: Di Li <[email protected]> Authored: Mon Mar 20 12:17:59 2017 -0400 Committer: Di Li <[email protected]> Committed: Mon Mar 20 12:17:59 2017 -0400 ---------------------------------------------------------------------- .../before-START/files/fast-hdfs-resource.jar | Bin 19285850 -> 28296600 bytes .../ambari/fast_hdfs_resource/Runner.java | 8 +++++--- 2 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/bc37bf74/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar index c90890b..8629da3 100644 Binary files a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar and b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/files/fast-hdfs-resource.jar differ http://git-wip-us.apache.org/repos/asf/ambari/blob/bc37bf74/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java ---------------------------------------------------------------------- diff --git a/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java b/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java index e210876..98119b0 100644 --- a/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java +++ b/contrib/fast-hdfs-resource/src/main/java/org/apache/ambari/fast_hdfs_resource/Runner.java @@ -77,12 +77,14 @@ public class Runner { pathHadoop = new Path(resource.getSource()); } else { + String path = resource.getTarget(); + pathHadoop = new Path(path); if (!resource.isManageIfExists() && dfs.exists(pathHadoop)) { - System.out.println("Skipping the operation for not managed DFS directory " + resource.getTarget() + - " since immutable_paths contains it."); + System.out.println( + String.format("Skipping the operation for not managed DFS directory %s since immutable_paths contains it.", path) + ); continue; } - pathHadoop = new Path(resource.getTarget()); } if (resource.getAction().equals("create")) {
