Merge "Fix 'Clock Offset' error in Cloudera Manager"

This commit is contained in:
Jenkins 2014-10-27 12:06:18 +00:00 committed by Gerrit Code Review
commit b656f4a5ef
2 changed files with 9 additions and 0 deletions

View File

@ -52,6 +52,14 @@ def start_manager(remote):
_root(remote, 'service cloudera-scm-server start')
def start_ntp(remote):
distrib = _get_os_distrib(remote)
if distrib == 'centos':
_root(remote, 'service ntpd start')
elif distrib == 'ubuntu':
_root(remote, 'service ntp start')
def configure_agent(remote, manager_address):
remote.replace_remote_string('/etc/cloudera-scm-agent/config.ini',
'server_host=.*',

View File

@ -305,6 +305,7 @@ def _await_agents(instances):
def _start_cloudera_agent(instance):
mng_hostname = pu.get_manager(instance.node_group.cluster).hostname()
with instance.remote() as r:
cmd.start_ntp(r)
cmd.configure_agent(r, mng_hostname)
cmd.start_agent(r)