Repository: ambari
Updated Branches:
  refs/heads/branch-2.2 4aa6524af -> dfac4b98c


AMBARI-15712. Flume Handler Start fails while installing without HDFS (aonishuk)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/dfac4b98
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dfac4b98
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dfac4b98

Branch: refs/heads/branch-2.2
Commit: dfac4b98cd557b30071013d69aa12feeb27838d0
Parents: 4aa6524
Author: Andrew Onishuk <[email protected]>
Authored: Tue Apr 5 15:20:55 2016 +0300
Committer: Andrew Onishuk <[email protected]>
Committed: Tue Apr 5 15:20:55 2016 +0300

----------------------------------------------------------------------
 .../stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py  | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/dfac4b98/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py
 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py
index a1d3ac3..5114119 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/rack_awareness.py
@@ -40,5 +40,7 @@ def create_topology_script():
        only_if=format("test -d {net_topology_script_dir}"))
 
 def create_topology_script_and_mapping():
+  import params
+  if params.has_hadoop_env:
     create_topology_mapping()
     create_topology_script()

Reply via email to