Repository: bigtop Updated Branches: refs/heads/master 37a400254 -> 11d46c4aa
BIGTOP-2818: Ambari downloads jdk Ambari server uses jdk package from Hortonworks by default. This package is not aligned with distro provided, and only x86 is supported. Update Ambari server deploy script to use distro's JDK. This closes #367 Change-Id: If062a9a4d689ed31276a944e68254b2fda9a264e Signed-off-by: Jun He <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/11d46c4a Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/11d46c4a Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/11d46c4a Branch: refs/heads/master Commit: 11d46c4aaeec4d13907fcd23cb42d1f3be54c642 Parents: 37a4002 Author: Jun He <[email protected]> Authored: Thu Jun 7 11:17:50 2018 +0800 Committer: Jun He <[email protected]> Committed: Mon Jun 11 01:12:59 2018 +0000 ---------------------------------------------------------------------- bigtop-deploy/puppet/modules/ambari/manifests/init.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/11d46c4a/bigtop-deploy/puppet/modules/ambari/manifests/init.pp ---------------------------------------------------------------------- diff --git a/bigtop-deploy/puppet/modules/ambari/manifests/init.pp b/bigtop-deploy/puppet/modules/ambari/manifests/init.pp index 9f8bb25..823463b 100644 --- a/bigtop-deploy/puppet/modules/ambari/manifests/init.pp +++ b/bigtop-deploy/puppet/modules/ambari/manifests/init.pp @@ -35,8 +35,8 @@ class ambari { exec { "server setup": - command => "/usr/sbin/ambari-server setup -s", - require => [ Package["ambari-server"], Exec["mpack install"] ] + command => "/usr/sbin/ambari-server setup -j $(readlink -f /usr/bin/java | sed 's/jre\/bin\/java//') -s", + require => [ Package["ambari-server"], Package["jdk"], Exec["mpack install"] ] } service { "ambari-server":
