Commit Graph

21 Commits

Author SHA1 Message Date
Zhuang Changkun 83224a6c5e Add support to build 3.0.1 image
Change-Id: I1d90099b22ed9a0ede08df45059e6d7848c237b8
2018-06-08 14:11:37 +08:00
Zhuang Changkun 5707f5cc5a Add support to build 2.7.5 image
Change-Id: Ia16692632cbe6380d4021dd031eed09362873905
2018-04-17 19:26:08 +08:00
Shu Yingya 12efcf84e2 Add support to build 2.8.2 image
Also tweak Hive a bit and refer to artifacts in a new (but not totally
ideal) location.

Co-Authored-By: Jeremy Freudberg <jeremyfreudberg@gmail.com>
Change-Id: I3a25ee8c282849911089adf6c3593b1bb50fd067
2018-03-01 09:51:01 +08:00
Vitaly Gridnev ec50d50387 drop vanilla 2.6.0 support from elements
we don't have vanilla 2.6.0 in supported list
in all current branches of sahara. we can
just drop that. if needed, stable/mitaka
branch should be used for building that image.

Change-Id: I81ed8209f2154f112fe7f6718029b84548793380
2016-08-22 17:41:05 +03:00
Pino Toscano 5e936d63d1 Drop hadoop/vanilla v1 images
Drop support for generating vanilla/hadoop v1 images.  This version is
deprecated in Sahara, and the support for going to be removed soon.

Partially-implements bp: drop-hadoop-1

Change-Id: I7b0d36d255a783057c7c5876017653e0f28f83de
2015-09-14 17:54:20 +02:00
Vitaly Gridnev 513d7d92ac Support building images for new vanilla plugin
New vanilla would contain following elements:

 * 2.7.1 version of hadoop
 * 4.2.0 version of oozie

Implements blueprint: support-vanilla-2-7-1
Depends-On: Iae884d9f044ba1fe64b6d4ff23fa6ebabdbb41d9

Change-Id: I4191d6bb7e323709cd14744df3d5c8695c1eddee
2015-08-13 13:13:22 +00:00
Pino Toscano c8cbe25f1b Start switching to declarative package-installs
Make use of the package-installs element to declare in yaml format the
packages to be installed at the beginning of a phase.

Other than reducing the amont of explicit 'install-packages pkg1 ...'
invocations, they can also be installed just once per-phase.

Change-Id: I1f1acfb2bd74fed5cf4c0b48bc739f7f75c35d83
2015-04-15 00:44:54 +08:00
Jenkins 69e110c6fa Merge "Make almost all the element scripts as e/u/pipefail" 2015-04-07 16:37:24 +00:00
Pino Toscano 2fb2422da8 Make almost all the element scripts as e/u/pipefail
Following the latest dib-lint reporting, make sure almost all the
scripts are enabling -e, -u, and pipefail.  This eases the discovery of
failing commands, and the usage of unset variables.

There are few exceptions with flags not set:

* elements/hadoop-hdp/install.d/40-install-hdp, set -e
  when installing HDP 2.0, it tries to install tez, which does not seem
  to exist in Hortonworks' repositories

* elements/ssh/install.d/33-ssh, set -e
  the version of augtool (part of augeas 0.10) in older Ubuntu versions
  (like Precise, needed by the cloudera plugin) exits with wrong return
  values in autosave mode

* elements/storm/install.d/60-storm, set -e
  It tries to change the permission of /etc/supervisord.conf, which does
  not seem to exist

Change-Id: Ic1314639dfc6a66c48ca87b6820707a2b0cb1dbd
Partial-Bug: #1435306
2015-04-07 12:46:39 +02:00
Pino Toscano f2fac65cc4 Start caching large-sized resources
Use the cache-url script (in the element cache-url) to download and
cache resources which might be expensive (mostly because of their size)
to fetch every time.
As the shared cache ($DIB_IMAGE_CACHE) is available only when running
the root.d elements, move the download phases to root.d scripts.

Change-Id: Iec3e0f92e62c4c9542487a3c228ba8f9e884e5dd
2015-04-03 15:45:16 +02:00
Pino Toscano 7d189ed603 Handle most of unbound variables usages
Make sure that, even when set -u, scripts can run handling unset
variables correctly.

All the changes involve variables optionally set by the user.

Change-Id: If74051fb5882eacdaa49ca7e35d2808f3989bd17
2015-04-01 15:46:10 +02:00
Pino Toscano 55a21cd746 Adopt DIB_DEBUG_TRACE for tracing in elements
Mimic commit 36b59c001c1643217449646b371df46d2cb11b91 in
diskimage-builder, by adopting the usage of $DIB_DEBUG_TRACE to check
whether enable tracing in scripts.

Unlike with the diskimage-builder commit, the default is to not enable
tracing even in the few scripts that used to unconditionally "set -x".

Enabling tracing can be done by either:
- passing -x to disk-image-create
- exporting DIB_DEBUG_TRACE=N, with N=0/1

Change-Id: I56ccd6753df31f7ddda641640cdb1985b2d9e856
Partial-Bug: #1435306
2015-03-23 20:12:41 +01:00
Sergey Reshetnyak 18f23a7cf5 Remove ability to building vanilla 2.3 and 2.4 images
Vanilla 2.3 deprecated in Juno
Vanilla 2.4 deprecated in Kilo

Need to remove code for building these images.

Implements blueprint drop-hadoop-2-3-support

Change-Id: Ie981346bfd5dd98d9c48740f74ccff0bf424136b
2015-01-27 08:47:59 +00:00
PavlovAndrey f2a0837046 Adding ability to build images for Hadoop 2.6.0
partially implements bp: add-vanilla-2-hadoop-2-6-0

Change-Id: I042a55697a36a9b4dbf1da0a29cf357dbab54dee
2014-12-09 18:15:29 +03:00
Sergey Reshetnyak 59cd245f13 Fix bashate errors
Change-Id: Icee255fc3393bad79ca02457395170af42c61a32
2014-10-14 12:49:42 +04:00
Sergey Reshetnyak 98694844be Bump Hadoop to 2.4.1 version
Change-Id: I5368b45e9fd984f5e2082dd31a15a6d45065a9da
2014-07-16 20:01:15 +04:00
Sergey Reshetnyak f1e5da6be6 Add support building images for Hadoop 2.4.0
partially implements blueprint add-vanilla-2-hadoop-2-4-0

Change-Id: I0b534f37dcb589545070d3db670bf3d21471b67d
2014-07-08 14:50:07 +04:00
Sergey Reshetnyak 2cdd719cd9 Fix install Oozie for vanilla 2 plugin
If you build all images for vanilla plugin then for vanilla 2
image install oozie with hadoop 1. This patch fixed it.

Closes-bug: #1305123

Change-Id: Ic9911b05774b063dc7640d8fdaa684fa7688ae71
2014-04-09 23:14:28 +04:00
Sergey Reshetnyak efb7bcf6c2 Use specific oozie for hadoop 2 plugin
Partially implements blueprint: vanilla-plugin-hadoop-2

Co-Authored-By: Ivan Berezovskiy <iberezovskiy@mirantis.com>

Change-Id: I46b6217c567db2e530d23a460a3b77a4681ae8f6
2014-03-20 15:58:15 +04:00
Nikolay Mahotkin f9bcf04190 Fix oozie element
* fix link to oozie.tar.gz
 * delete prepare-war operation

Change-Id: I23a0c4d4a28f20b25b961c78e26716ee685fb985
2013-09-23 14:20:21 +04:00
Alexander Ignatov 37e87ddac5 Added Oozie DIB element
* New element name is 'oozie'
* Parameters for Oozie libs are OOZIE_DOWNLOAD_URL and OOZIE_FILE

Implements: blueprint edp-dib-element-oozie-vanilla

Change-Id: I7e107b51d5aef5d225690c0f7633dbccc072fe27
2013-09-02 12:59:03 +04:00