Repository: ambari
Updated Branches:
  refs/heads/trunk 113f3712b -> 545ea7493


AMBARI-13825: Exchange of keys should be done during start phase (not during 
install) (bhuvnesh2703 via jaoki)


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

Branch: refs/heads/trunk
Commit: 545ea7493a58f3190b29ee394f18a3f88499e6c9
Parents: 113f371
Author: Jun Aoki <[email protected]>
Authored: Thu Nov 12 12:01:14 2015 -0800
Committer: Jun Aoki <[email protected]>
Committed: Thu Nov 12 12:01:14 2015 -0800

----------------------------------------------------------------------
 .../common-services/HAWQ/2.0.0/package/scripts/master_helper.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/545ea749/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py
 
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py
index 35f5112..7261a04 100644
--- 
a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py
+++ 
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/package/scripts/master_helper.py
@@ -66,7 +66,6 @@ def configure_master():
   common.setup_user()
   common.setup_common_configurations()
   __setup_master_specific_conf_files()
-  __setup_passwordless_ssh()
   __setup_hawq_user_profile()
   __create_local_dirs()
 
@@ -165,6 +164,10 @@ def start_master():
     Fail("Host should be either active Hawq master or Hawq standby.")
 
   is_active_master = __is_active_master()
+  # Exchange ssh keys from active hawq master before starting.
+  if is_active_master:
+    __setup_passwordless_ssh()
+
   if __is_local_initialized():
     __start_local_master()
 

Reply via email to