Merge "Adding Ambari 2.6 to image pack"
This commit is contained in:
commit
d22a314f5e
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Adding the ability to create Ambari 2.6 images on sahara-image-pack
|
@ -276,6 +276,9 @@ class AmbariPluginProvider(p.ProvisioningPluginBase):
|
|||||||
|
|
||||||
def pack_image(self, hadoop_version, remote,
|
def pack_image(self, hadoop_version, remote,
|
||||||
test_only=False, image_arguments=None):
|
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,
|
self.validator.validate(remote, test_only=test_only,
|
||||||
image_arguments=image_arguments)
|
image_arguments=image_arguments)
|
||||||
|
|
||||||
|
@ -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
|
@ -1,11 +1,10 @@
|
|||||||
arguments:
|
arguments:
|
||||||
ambari_version:
|
ambari_version:
|
||||||
description: The version of Ambari to install. Defaults to 2.4.3.0.
|
description: The version of Ambari to install. Defaults to 2.6.2.0.
|
||||||
default: 2.4.3.0
|
default: 2.6.2.0
|
||||||
choices:
|
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.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:
|
java_distro:
|
||||||
default: openjdk
|
default: openjdk
|
||||||
description: The distribution of Java to install. Defaults to openjdk.
|
description: The distribution of Java to install. Defaults to openjdk.
|
||||||
@ -29,6 +28,11 @@ validators:
|
|||||||
- package: java-1.8.0-openjdk-devel
|
- package: java-1.8.0-openjdk-devel
|
||||||
oracle-java:
|
oracle-java:
|
||||||
- script: common/oracle_java
|
- script: common/oracle_java
|
||||||
|
- argument_case:
|
||||||
|
argument_name: ambari_version
|
||||||
|
cases:
|
||||||
|
2.6.2.0:
|
||||||
|
- package: libtirpc-devel
|
||||||
- os_case:
|
- os_case:
|
||||||
- redhat:
|
- redhat:
|
||||||
- script: centos/disable_selinux
|
- script: centos/disable_selinux
|
||||||
@ -67,6 +71,7 @@ validators:
|
|||||||
- mysql-client-5.5
|
- mysql-client-5.5
|
||||||
- mysql-server-5.5
|
- mysql-server-5.5
|
||||||
- libmysql-java
|
- libmysql-java
|
||||||
|
- script: common/mysql_connector_java_link
|
||||||
- package: ambari-agent
|
- package: ambari-agent
|
||||||
- script: common/fix_tls_ambari_agent
|
- script: common/fix_tls_ambari_agent
|
||||||
- package:
|
- package:
|
||||||
|
Loading…
Reference in New Issue
Block a user