Remove unneeded starting ntp
Starting ntp service in unneeded because it will be started before. Closes-bug: 1487465 Change-Id: Ic944f3e42e648e6513ce5f86effcadb57334f5da
This commit is contained in:
parent
c6cb9c24b2
commit
21a85d1c61
@ -52,14 +52,6 @@ def start_manager(remote):
|
|||||||
_root(remote, 'service cloudera-scm-server start')
|
_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):
|
def configure_agent(remote, manager_address):
|
||||||
remote.replace_remote_string('/etc/cloudera-scm-agent/config.ini',
|
remote.replace_remote_string('/etc/cloudera-scm-agent/config.ini',
|
||||||
'server_host=.*',
|
'server_host=.*',
|
||||||
|
@ -237,7 +237,6 @@ class AbstractPluginUtils(object):
|
|||||||
def _start_cloudera_agent(self, instance):
|
def _start_cloudera_agent(self, instance):
|
||||||
mng_hostname = self.get_manager(instance.cluster).hostname()
|
mng_hostname = self.get_manager(instance.cluster).hostname()
|
||||||
with instance.remote() as r:
|
with instance.remote() as r:
|
||||||
cmd.start_ntp(r)
|
|
||||||
cmd.configure_agent(r, mng_hostname)
|
cmd.configure_agent(r, mng_hostname)
|
||||||
cmd.start_agent(r)
|
cmd.start_agent(r)
|
||||||
|
|
||||||
|
@ -46,7 +46,6 @@ PACKAGES = [
|
|||||||
'hive-server2',
|
'hive-server2',
|
||||||
'hive-webhcat-server',
|
'hive-webhcat-server',
|
||||||
'hue',
|
'hue',
|
||||||
'ntp',
|
|
||||||
'oozie',
|
'oozie',
|
||||||
'oracle-j2sdk1.7',
|
'oracle-j2sdk1.7',
|
||||||
'spark-core',
|
'spark-core',
|
||||||
|
@ -45,7 +45,6 @@ PACKAGES = [
|
|||||||
'impala-state-store',
|
'impala-state-store',
|
||||||
'impala-catalog',
|
'impala-catalog',
|
||||||
'impala-shell',
|
'impala-shell',
|
||||||
'ntp',
|
|
||||||
'oozie',
|
'oozie',
|
||||||
'oracle-j2sdk1.7',
|
'oracle-j2sdk1.7',
|
||||||
'sentry',
|
'sentry',
|
||||||
|
@ -47,7 +47,6 @@ PACKAGES = [
|
|||||||
'impala-catalog',
|
'impala-catalog',
|
||||||
'impala-shell',
|
'impala-shell',
|
||||||
'keytrustee-keyprovider',
|
'keytrustee-keyprovider',
|
||||||
'ntp',
|
|
||||||
'oozie',
|
'oozie',
|
||||||
'oracle-j2sdk1.7',
|
'oracle-j2sdk1.7',
|
||||||
'sentry',
|
'sentry',
|
||||||
|
Loading…
Reference in New Issue
Block a user