Adding Spark 2.3
Adding ability to create Spark 2.3 Change-Id: I5fcfd050121b563960a48a3c8dbad9dda19b2a3e
This commit is contained in:
parent
83224a6c5e
commit
0421dfb8e5
@ -13,7 +13,7 @@ DEBUG_MODE="false"
|
|||||||
DIB_DEFAULT_MAPR_VERSION="5.2.0"
|
DIB_DEFAULT_MAPR_VERSION="5.2.0"
|
||||||
|
|
||||||
# The default version for Spark plugin
|
# The default version for Spark plugin
|
||||||
DIB_DEFAULT_SPARK_VERSION="2.2.0"
|
DIB_DEFAULT_SPARK_VERSION="2.3.0"
|
||||||
|
|
||||||
# The default version for Storm plugin
|
# The default version for Storm plugin
|
||||||
DIB_DEFAULT_STORM_VERSION="1.1.0"
|
DIB_DEFAULT_STORM_VERSION="1.1.0"
|
||||||
@ -34,7 +34,7 @@ usage() {
|
|||||||
echo " [-i ubuntu|fedora|centos7]"
|
echo " [-i ubuntu|fedora|centos7]"
|
||||||
echo " [-v 2.7.1|2.7.5|2.8.2|3.0.1|5.5|5.7|5.9|5.11|2.2.0.0|2.2.1.0|2.4.2.0]"
|
echo " [-v 2.7.1|2.7.5|2.8.2|3.0.1|5.5|5.7|5.9|5.11|2.2.0.0|2.2.1.0|2.4.2.0]"
|
||||||
echo " [-r 5.1.0|5.2.0]"
|
echo " [-r 5.1.0|5.2.0]"
|
||||||
echo " [-s 1.3.1|1.6.0|2.1.0|2.2.0]"
|
echo " [-s 1.6.0|2.1.0|2.2.0|2.3.0]"
|
||||||
echo " [-t 0.9.2|1.0.1|1.1.0|1.1.1]"
|
echo " [-t 0.9.2|1.0.1|1.1.0|1.1.1]"
|
||||||
echo " [-f qcow2|raw]"
|
echo " [-f qcow2|raw]"
|
||||||
echo " [-d]"
|
echo " [-d]"
|
||||||
@ -153,7 +153,7 @@ fi
|
|||||||
|
|
||||||
check_spark_version () {
|
check_spark_version () {
|
||||||
case "$DIB_SPARK_VERSION" in
|
case "$DIB_SPARK_VERSION" in
|
||||||
"1.3.1" | "1.6.0" | "2.1.0" | "2.2.0");;
|
"1.6.0" | "2.1.0" | "2.2.0" | "2.3.0");;
|
||||||
"")
|
"")
|
||||||
echo "Spark version not specified"
|
echo "Spark version not specified"
|
||||||
echo "Spark ${DIB_DEFAULT_SPARK_VERSION} will be used"
|
echo "Spark ${DIB_DEFAULT_SPARK_VERSION} will be used"
|
||||||
@ -475,11 +475,6 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "vanilla" ]; then
|
|||||||
export DIB_HDFS_LIB_DIR="/opt/hadoop/share/hadoop/tools/lib"
|
export DIB_HDFS_LIB_DIR="/opt/hadoop/share/hadoop/tools/lib"
|
||||||
export plugin_type="vanilla"
|
export plugin_type="vanilla"
|
||||||
|
|
||||||
if [ "$DIB_SPARK_VERSION" = "1.3.1" ]; then
|
|
||||||
echo "Cannot use Spark 1.3.1 with Vanilla plugin"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
export DIB_SPARK_VERSION
|
export DIB_SPARK_VERSION
|
||||||
|
|
||||||
if [ "$DIB_SPARK_VERSION" = "1.6.0" ]; then
|
if [ "$DIB_SPARK_VERSION" = "1.6.0" ]; then
|
||||||
@ -615,7 +610,7 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "spark" ]; then
|
|||||||
export DIB_SPARK_VERSION
|
export DIB_SPARK_VERSION
|
||||||
export plugin_type="spark"
|
export plugin_type="spark"
|
||||||
|
|
||||||
if [ "$DIB_SPARK_VERSION" = "2.2.0" ]; then
|
if [ "$DIB_SPARK_VERSION" = "2.2.0" || "$DIB_SPARK_VERSION" = "2.3.0" ]; then
|
||||||
export DIB_CDH_VERSION="5.11"
|
export DIB_CDH_VERSION="5.11"
|
||||||
export DIB_RELEASE=${DIB_RELEASE:-xenial}
|
export DIB_RELEASE=${DIB_RELEASE:-xenial}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user