copying oozie.warden to prevent failure

copying oozie.warden.conf should prevent possible
issues with packages installation.

Related bug: 1607704

Change-Id: I33e8f19037f61c1cbd310d7d703383083715f658
This commit is contained in:
Grigoriy Rozhkov
2016-08-12 16:17:32 +03:00
parent a8a25feaa7
commit 05a8a2c80e
2 changed files with 10 additions and 0 deletions

View File

@@ -59,6 +59,8 @@ class NodeProcess(object):
self.execute_action(instances, Action.STOP)
def execute_action(self, instances, action):
if len(instances) == 0:
return
nodes = ','.join(map(lambda i: i.internal_ip, instances))
args = {'service': self.name, 'action': action.name, 'nodes': nodes}
command = WARDEN_MANAGED_CMD % args

View File

@@ -91,6 +91,14 @@ class Oozie(s.Service):
def post_configure(self, cluster_context, instances):
super(Oozie, self).install(cluster_context, instances)
oozie_instances = cluster_context.filter_instances(instances,
service=self)
for instance in oozie_instances:
with instance.remote() as r:
r.execute_command(
'sudo cp '
'/opt/mapr/oozie/oozie-%s/conf/warden.oozie.conf '
'/opt/mapr/conf/conf.d' % self.version)
def post_install(self, cluster_context, instances):
oozie_inst = cluster_context.get_instance(OOZIE)