You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sw...@apache.org on 2014/04/07 20:38:08 UTC

git commit: AMBARI-5380. Ambari performs extremely slow on CentOS 5. (swagle)

Repository: ambari
Updated Branches:
  refs/heads/trunk 53e0f8da2 -> eab916dd2


AMBARI-5380. Ambari performs extremely slow on CentOS 5. (swagle)


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

Branch: refs/heads/trunk
Commit: eab916dd2d6eafe37dcc4f5dd4f987945f3bcf11
Parents: 53e0f8d
Author: Siddharth Wagle <sw...@hortonworks.com>
Authored: Mon Apr 7 11:28:28 2014 -0700
Committer: Siddharth Wagle <sw...@hortonworks.com>
Committed: Mon Apr 7 11:28:51 2014 -0700

----------------------------------------------------------------------
 .../src/main/python/ambari_agent/CustomServiceOrchestrator.py    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/eab916dd/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
----------------------------------------------------------------------
diff --git a/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py b/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
index 7436d26..91d1b8d 100644
--- a/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
+++ b/ambari-agent/src/main/python/ambari_agent/CustomServiceOrchestrator.py
@@ -48,6 +48,7 @@ class CustomServiceOrchestrator():
   PRE_HOOK_PREFIX="before"
   POST_HOOK_PREFIX="after"
 
+
   def __init__(self, config, controller):
     self.config = config
     self.tmp_dir = config.get('agent', 'prefix')
@@ -57,6 +58,7 @@ class CustomServiceOrchestrator():
                                                'status_command_stdout.txt')
     self.status_commands_stderr = os.path.join(self.tmp_dir,
                                                'status_command_stderr.txt')
+    self.public_fqdn = hostname.public_hostname()
     # cache reset will be called on every agent registration
     controller.registration_listeners.append(self.file_cache.reset)
     # Clean up old status command files if any
@@ -197,7 +199,7 @@ class CustomServiceOrchestrator():
     """
     # Perform few modifications to stay compatible with the way in which
     # site.pp files are generated by manifestGenerator.py
-    public_fqdn = hostname.public_hostname()
+    public_fqdn = self.public_fqdn
     command['public_hostname'] = public_fqdn
     # Now, dump the json file
     command_type = command['commandType']