Merge "Adding Ambari 2.6 to image pack"

This commit is contained in:
Zuul 2018-07-25 12:58:26 +00:00 committed by Gerrit Code Review
commit d22a314f5e
4 changed files with 29 additions and 4 deletions

View File

@ -0,0 +1,3 @@
---
features:
- Adding the ability to create Ambari 2.6 images on sahara-image-pack

View File

@ -276,6 +276,9 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
def pack_image(self, hadoop_version, remote,
test_only=False, image_arguments=None):
if hadoop_version == '2.3':
image_arguments['ambari_version'] = '2.4.3.0'
self.validator.validate(remote, test_only=test_only,
image_arguments=image_arguments)

View File

@ -0,0 +1,14 @@
#!/bin/bash -x
# This is necessary due to the information on the link below
# https://community.hortonworks.com/articles/170133/hive-start-failed-because-of-ambari-error-mysql-co.html
if [ ! -L /var/lib/ambari-server/resources/mysql-connector-java.jar ]; then
if [ $test_only -eq 0 ]; then
ln -s /usr/share/java/mysql-connector-java.jar /var/lib/ambari-server/resources/mysql-connector-java.jar
else
exit 1
fi
else
exit 0
fi

View File

@ -1,11 +1,10 @@
arguments:
ambari_version:
description: The version of Ambari to install. Defaults to 2.4.3.0.
default: 2.4.3.0
description: The version of Ambari to install. Defaults to 2.6.2.0.
default: 2.6.2.0
choices:
- 2.6.2.0 # HDP 2.6 / HDP 2.5 / HDP 2.4
- 2.4.3.0 # HDP 2.5 / HDP 2.4 / HDP 2.3
- 2.2.0.0 # HDP 2.3
- 2.2.1.0 # HDP 2.4
java_distro:
default: openjdk
description: The distribution of Java to install. Defaults to openjdk.
@ -29,6 +28,11 @@ validators:
- package: java-1.8.0-openjdk-devel
oracle-java:
- script: common/oracle_java
- argument_case:
argument_name: ambari_version
cases:
2.6.2.0:
- package: libtirpc-devel
- os_case:
- redhat:
- script: centos/disable_selinux
@ -67,6 +71,7 @@ validators:
- mysql-client-5.5
- mysql-server-5.5
- libmysql-java
- script: common/mysql_connector_java_link
- package: ambari-agent
- script: common/fix_tls_ambari_agent
- package: