Repository: ambari
Updated Branches:
  refs/heads/branch-2.6 1cd8f7c87 -> 77491d283


AMBARI-22256. Smartsense requires HDFS to be always present while installing  
(aonishuk)


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

Branch: refs/heads/branch-2.6
Commit: 77491d2832d2f93c22c7e2a302033e589d8ac81c
Parents: 1cd8f7c
Author: Andrew Onishuk <[email protected]>
Authored: Tue Oct 17 20:18:35 2017 +0300
Committer: Andrew Onishuk <[email protected]>
Committed: Tue Oct 17 20:18:35 2017 +0300

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/77491d28/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
index 55a6093..59ed345 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
@@ -328,7 +328,7 @@ else:
  namenode_rpc = default('/configurations/hdfs-site/dfs.namenode.rpc-address', 
default_fs)
 
 # if HDFS is not installed in the cluster, then don't try to access 
namenode_rpc
-if "core-site" in config['configurations'] and namenode_rpc:
+if has_namenode and namenode_rpc:
  port_str = namenode_rpc.split(':')[-1].strip()
  try:
    nn_rpc_client_port = int(port_str)

Reply via email to