Merge "Increase the startup time of ambari-server to 180s"

This commit is contained in:
Zuul 2018-11-16 20:07:50 +00:00 committed by Gerrit Code Review
commit b7e3567cad
1 changed files with 5 additions and 0 deletions

View File

@ -81,6 +81,11 @@ def setup_ambari(cluster):
ambari_settings)
sudo("ambari-server setup -s -j"
" `cut -f2 -d \"=\" /etc/profile.d/99-java.sh`", timeout=1800)
# the following change must be after ambari-setup, or it would be
# overwritten (probably because it's not part of the base set of
# keywords/values handled by ambari-setup).
r.append_to_file("/etc/ambari-server/conf/ambari.properties",
"server.startup.web.timeout=180", run_as_root=True)
redirect_file = "/tmp/%s" % uuidutils.generate_uuid()
sudo("service ambari-server start >{rfile} && "
"cat {rfile} && rm {rfile}".format(rfile=redirect_file))