Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Parallel Task Execution in Ambari on the Sandbox

avatar
Expert Contributor

I'm currently trying to turn this demo into an Ambari service to start/stop/install the demo services. All of my testing is on the last release of the HDP 2.4 Sandbox

https://github.com/vakshorton/DeviceManagerDemo

I've turned it into an Ambari service in this fork:

https://github.com/ZacBlanco/DeviceManagerDemo

My issue I'm having is that the original installation script makes calls to the Ambari API. This in turns triggers tasks such as Start/Stop/Restart of other Ambari services. But when the install script is run by the Ambari Agent, the current task running is the install of DEMOSERVICE. The agent refuses to run the other Ambari tasks that are created by the install script. Thus the script never actually finishes installing because it’s waiting for Ambari to finish the task - which is never does.

I have enabled the parallel_execution=1 in /etc/ambari-agent/conf/ambari-agent.ini ( https://issues.apache.org/jira/browse/AMBARI-8189)

Is there a way to get Ambari to run the tasks in parallel? Or does anyone know of a workaround for this?

The install script is here:

https://github.com/ZacBlanco/DeviceManagerDemo/blob/master/package/files/install.sh

1 ACCEPTED SOLUTION

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login
3 REPLIES 3

avatar
hide-solution

This problem has been solved!

Want to get a detailed solution you have to login/registered on the community

Register/Login

avatar
Expert Contributor

Thanks! Do you have any comment on the parallel task execution? Or have you dealt with it before? I'm just curious.

avatar

@zblanco actually no...wasn't aware of it until you pointed it out