workaround to fix ambari start on centos7

Change-Id: I1a0383861db50ae5136e8dff9de4119b566606f1
Closes-bug: 1579187
This commit is contained in:
Vitaly Gridnev 2016-05-11 16:07:47 +03:00
parent 165172f1ae
commit 6329a0aa73
2 changed files with 6 additions and 1 deletions

View File

@ -0,0 +1,3 @@
---
fixes:
- Starting Ambari clusters on Centos 7 is fixed.

View File

@ -55,7 +55,9 @@ def setup_ambari(cluster):
sudo = functools.partial(r.execute_command, run_as_root=True) sudo = functools.partial(r.execute_command, run_as_root=True)
sudo("ambari-server setup -s -j" sudo("ambari-server setup -s -j"
" `cut -f2 -d \"=\" /etc/profile.d/99-java.sh`", timeout=1800) " `cut -f2 -d \"=\" /etc/profile.d/99-java.sh`", timeout=1800)
sudo("service ambari-server start") redirect_file = "/tmp/%s" % uuidutils.generate_uuid()
sudo("service ambari-server start >{rfile} && "
"cat {rfile} && rm {rfile}".format(rfile=redirect_file))
LOG.debug("Ambari management console installed") LOG.debug("Ambari management console installed")