Switch to the extjs element

Migrate the hadoop-cloudera and hadoop-mapr elements to use the new
extjs element, configuring it using environment.d snippets.

Change-Id: I354cf3ce5e816746e8d228d1af1b0da126c285d7
This commit is contained in:
Pino Toscano 2015-04-08 18:59:11 +02:00
parent 880190bb5b
commit e1cac293a3
7 changed files with 5 additions and 37 deletions

View File

@ -543,7 +543,6 @@ fi
#########################
if [ -z "$PLUGIN" -o "$PLUGIN" = "cloudera" ]; then
export EXTJS_DOWNLOAD_URL=${EXTJS_DOWNLOAD_URL:-"http://extjs.com/deploy/ext-2.2.zip"}
if [ -z "$BASE_IMAGE_OS" -o "$BASE_IMAGE_OS" = "ubuntu" ]; then
if [ -z "$HADOOP_VERSION" -o "$HADOOP_VERSION" = "5.0" ]; then
cloudera_5_0_ubuntu_image_name=${cloudera_5_0_ubuntu_image_name:-ubuntu_sahara_cloudera_5_0_0}
@ -624,7 +623,6 @@ if [ -z "$PLUGIN" -o "$PLUGIN" = "cloudera" ]; then
fi
unset REG_METHOD REG_HALT_UNREGISTER
fi
unset EXTJS_DOWNLOAD_URL
fi
##########################

View File

@ -1 +1,2 @@
extjs
ssh

View File

@ -0,0 +1 @@
export EXTJS_DESTINATION_DIR="/var/lib/oozie"

View File

@ -1,16 +0,0 @@
#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
install-packages wget unzip
OOZIE_WEBAPP_DIRECTORY="/var/lib/oozie"
EXTJS_FILENAME=$(basename $EXTJS_DOWNLOAD_URL)
pushd $OOZIE_WEBAPP_DIRECTORY
wget "$EXTJS_DOWNLOAD_URL"
unzip $EXTJS_FILENAME
popd

View File

@ -1,2 +1,3 @@
extjs
java
mysql

View File

@ -0,0 +1,2 @@
export EXTJS_DESTINATION_DIR="/opt/mapr-repository/"
export EXTJS_NO_UNPACK=1

View File

@ -1,19 +0,0 @@
#!/bin/bash
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
echo "START: downloading ExtJS library"
install-packages wget
MAPR_REPO_DIR="/opt/mapr-repository/"
EXT_JS_URL="http://extjs.com/deploy/ext-2.2.zip"
mkdir -p ${MAPR_REPO_DIR}
sudo wget ${EXT_JS_URL} -P ${MAPR_REPO_DIR}
echo "END: downloading ExtJS library"