Merge "Fix 'Clock Offset' error in Cloudera Manager"
This commit is contained in:
commit
b656f4a5ef
@ -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=.*',
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user