Repository: ambari Updated Branches: refs/heads/trunk 3a7a2d1b0 -> 395adf5af
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/395adf5a Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/395adf5a Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/395adf5a Branch: refs/heads/trunk Commit: 395adf5af992fb43c13d1aa6092cca23c133ec66 Parents: 3a7a2d1 Author: Di Li <[email protected]> Authored: Mon Mar 20 11:17:15 2017 -0400 Committer: Di Li <[email protected]> Committed: Mon Mar 20 11:17:15 2017 -0400 ---------------------------------------------------------------------- .../before-START/files/fast-hdfs-resource.jar | Bin 19285850 -> 28296600 bytes .../before-START/files/fast-hdfs-resource.jar | Bin 19285850 -> 28296600 bytes .../ambari/fast_hdfs_resource/Runner.java | 8 +++++--- 3 files changed, 5 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/395adf5a/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..6c993bf 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/395adf5a/ambari-server/src/main/resources/stacks/HDP/3.0/hooks/before-START/files/fast-hdfs-resource.jar ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/resources/stacks/HDP/3.0/hooks/before-START/files/fast-hdfs-resource.jar b/ambari-server/src/main/resources/stacks/HDP/3.0/hooks/before-START/files/fast-hdfs-resource.jar index c90890b..6c993bf 100644 Binary files a/ambari-server/src/main/resources/stacks/HDP/3.0/hooks/before-START/files/fast-hdfs-resource.jar and b/ambari-server/src/main/resources/stacks/HDP/3.0/hooks/before-START/files/fast-hdfs-resource.jar differ http://git-wip-us.apache.org/repos/asf/ambari/blob/395adf5a/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")) {
