Repository: bigtop Updated Branches: refs/heads/master 161630019 -> fff403cd1
Ignite BigTop integration. Signed-off-by: Konstantin Boudnik <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/fff403cd Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/fff403cd Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/fff403cd Branch: refs/heads/master Commit: fff403cd1838fb1ab30376e4b80bc0a027bab631 Parents: 1616300 Author: iveselovskiy <[email protected]> Authored: Tue Apr 7 13:05:17 2015 +0300 Committer: Konstantin Boudnik <[email protected]> Committed: Thu Apr 9 12:09:33 2015 -0700 ---------------------------------------------------------------------- .../src/common/ignite-hadoop/do-component-build | 22 ++ .../src/common/ignite-hadoop/ignite-hadoop.1 | 59 +++++ .../common/ignite-hadoop/ignite-hadoop.default | 22 ++ .../src/common/ignite-hadoop/ignite-hadoop.svc | 63 ++++++ .../src/common/ignite-hadoop/install_ignite.sh | 149 +++++++++++++ bigtop-packages/src/deb/ignite-hadoop/compat | 1 + bigtop-packages/src/deb/ignite-hadoop/control | 34 +++ bigtop-packages/src/deb/ignite-hadoop/copyright | 15 ++ bigtop-packages/src/deb/ignite-hadoop/format | 1 + .../deb/ignite-hadoop/ignite-hadoop-doc.dirs | 1 + .../deb/ignite-hadoop/ignite-hadoop-doc.install | 1 + .../src/deb/ignite-hadoop/ignite-hadoop.dirs | 4 + .../src/deb/ignite-hadoop/ignite-hadoop.install | 3 + .../deb/ignite-hadoop/ignite-hadoop.manpages | 1 + .../deb/ignite-hadoop/ignite-hadoop.postinst | 47 ++++ .../src/deb/ignite-hadoop/ignite-hadoop.preinst | 61 +++++ .../src/deb/ignite-hadoop/ignite-hadoop.prerm | 55 +++++ .../deb/ignite-hadoop/install_init_scripts.sh | 30 +++ bigtop-packages/src/deb/ignite-hadoop/rules | 47 ++++ .../src/deb/ignite-hadoop/service-postinst.tpl | 51 +++++ .../src/deb/ignite-hadoop/service-postrm.tpl | 51 +++++ .../src/deb/ignite-hadoop/source/format | 1 + .../rpm/ignite-hadoop/SPECS/ignite-hadoop.spec | 223 +++++++++++++++++++ bigtop.mk | 14 ++ 24 files changed, 956 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/common/ignite-hadoop/do-component-build ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/do-component-build b/bigtop-packages/src/common/ignite-hadoop/do-component-build new file mode 100644 index 0000000..180587d --- /dev/null +++ b/bigtop-packages/src/common/ignite-hadoop/do-component-build @@ -0,0 +1,22 @@ +#!/bin/bash +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -ex + +. `dirname $0`/bigtop.bom + +export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M" +mvn clean package -DskipTests -Dhadoop.version=$HADOOP_VERSION -Dignite.edition=hadoop http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.1 ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.1 b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.1 new file mode 100644 index 0000000..00344ef --- /dev/null +++ b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.1 @@ -0,0 +1,59 @@ +.\" Licensed to the Apache Software Foundation (ASF) under one or more +.\" contributor license agreements. See the NOTICE file distributed with +.\" this work for additional information regarding copyright ownership. +.\" The ASF licenses this file to You under the Apache License, Version 2.0 +.\" (the "License"); you may not use this file except in compliance with +.\" the License. You may obtain a copy of the License at +.\" +.\" http://www.apache.org/licenses/LICENSE-2.0 +.\" +.\" Unless required by applicable law or agreed to in writing, software +.\" distributed under the License is distributed on an "AS IS" BASIS, +.\" WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +.\" See the License for the specific language governing permissions and +.\" limitations under the License. +.\" +.\" Process this file with +.\" groff -man -Tascii ignite.1 +.\" +.TH ignite 1 "Mar 2015 " Linux "User Manuals" + +.SH NAME +Ignite \- Ignite is a filesystem and MR accelerator for Hadoop. + +.SH SYNOPSIS + +.B ignite +\fICOMMAND\fR + +.SH DESCRIPTION + +Ignite is a filesystem and MR accelerator for Hadoop. Use it when you +you need predictable file system caching, fast MR processing... + +Ignite is an open-source, distributed blah-blah + +For more information about Ignite, see http://ignite.incubator.apache.org/ . + +\fICOMMAND\fR may be one of the following: + something do something + else do something else + +Most commands print help when invoked w/o parameters or with --help. + +.SH ENVIRONMENT + +.IP JAVA_HOME +The java implementation to use. Overrides JAVA_HOME. + +.IP IGNITE_HOME +Extra Java CLASSPATH entries. + +.IP IGNITE_CONF_DIR +Alternate conf dir. Default is ${IGNITE_HOME}/conf. + +.IP HADOOP_HOME +Optionally, the Hadoop home to run with. + +.SH COPYRIGHT +2014 - 2015, The Apache Software Foundation http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.default ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.default b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.default new file mode 100644 index 0000000..87626d6 --- /dev/null +++ b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.default @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +export IGNITE_HOME="/usr/lib/ignite-hadoop" +export IGNITE_CONF_DIR="/etc/ignite-hadoop/conf" + +export IGNITE_PID_DIR="/var/run/ignite-hadoop" +export IGNITE_LOG_DIR="/var/log/ignite-hadoop" +export IGNITE_WORK_DIR="/var/run/ignite-hadoop/work" +export IGNITE_IDENT_STRING=ignite http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.svc ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.svc b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.svc new file mode 100644 index 0000000..417462e --- /dev/null +++ b/bigtop-packages/src/common/ignite-hadoop/ignite-hadoop.svc @@ -0,0 +1,63 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +DAEMON="@IGNITE_DAEMON@" +DESC="@IGNITE_DAEMON@ daemon" +EXEC_PATH="\${IGNITE_HOME}/bin/include/service.sh" +SVC_USER="ignite" +PIDFILE="\${IGNITE_PID_DIR}/${DAEMON}.pid" + +generate_start() { + +cat <<'__EOT__' +start() { + [ -x $EXEC_PATH ] || exit $ERROR_PROGRAM_NOT_INSTALLED + log_success_msg "Starting $DESC (${DAEMON}): " + + checkstatusofproc + status=$? + if [ "$status" -eq "$STATUS_RUNNING" ]; then + log_success_msg "${DESC} is running" + exit 0 + fi + + su -s /bin/bash ${SVC_USER} -c "${EXEC_PATH} start ${DAEMON}" + + checkstatusofproc + RETVAL=$? + [ $RETVAL -eq $STATUS_RUNNING ] && touch $LOCKFILE + return $RETVAL +} +__EOT__ + +} + +generate_stop() { + +cat <<'__EOT__' +stop() { + log_success_msg "Stopping $DESC (${DAEMON}): " + + su -s /bin/bash ${SVC_USER} -c "${EXEC_PATH} stop ${DAEMON}" + + sleep 3 + RETVAL=$? + + [ $RETVAL -eq $RETVAL_SUCCESS ] && rm -f $LOCKFILE $PIDFILE + return $RETVAL +} +__EOT__ + +} http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/common/ignite-hadoop/install_ignite.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/common/ignite-hadoop/install_ignite.sh b/bigtop-packages/src/common/ignite-hadoop/install_ignite.sh new file mode 100644 index 0000000..933a30e --- /dev/null +++ b/bigtop-packages/src/common/ignite-hadoop/install_ignite.sh @@ -0,0 +1,149 @@ +#!/bin/bash + +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +set -ex + +usage() { + echo " +usage: $0 <options> + Required not-so-options: + --build-dir=DIR path to ignite dist.dir + --prefix=PREFIX path to install into + + Optional options: + --doc-dir=DIR path to install docs into [/usr/share/doc/ignite] + --lib-dir=DIR path to install ignite home [/usr/lib/ignite] + --installed-lib-dir=DIR path where lib-dir will end up on target system + --bin-dir=DIR path to install bins [/usr/bin] + --examples-dir=DIR path to install examples [doc-dir/examples] + ... [ see source for more similar options ] + " + exit 1 +} + +OPTS=$(getopt \ + -n $0 \ + -o '' \ + -l 'prefix:' \ + -l 'doc-dir:' \ + -l 'lib-dir:' \ + -l 'installed-lib-dir:' \ + -l 'bin-dir:' \ + -l 'examples-dir:' \ + -l 'conf-dir:' \ + -l 'build-dir:' -- "$@") + +if [ $? != 0 ] ; then + usage +fi + +eval set -- "$OPTS" +while true ; do + case "$1" in + --prefix) + PREFIX=$2 ; shift 2 + ;; + --build-dir) + BUILD_DIR=$2 ; shift 2 + ;; + --doc-dir) + DOC_DIR=$2 ; shift 2 + ;; + --lib-dir) + LIB_DIR=$2 ; shift 2 + ;; + --installed-lib-dir) + INSTALLED_LIB_DIR=$2 ; shift 2 + ;; + --bin-dir) + BIN_DIR=$2 ; shift 2 + ;; + --examples-dir) + EXAMPLES_DIR=$2 ; shift 2 + ;; + --conf-dir) + CONF_DIR=$2 ; shift 2 + ;; + --) + shift ; break + ;; + *) + echo "Unknown option: $1" + usage + exit 1 + ;; + esac +done + +for var in PREFIX BUILD_DIR ; do + if [ -z "$(eval "echo \$$var")" ]; then + echo Missing param: $var + usage + fi +done + +MAN_DIR=${MAN_DIR:-/usr/share/man/man1} +DOC_DIR=${DOC_DIR:-/usr/share/doc/ignite-hadoop} +LIB_DIR=${LIB_DIR:-/usr/lib/ignite-hadoop} +BIN_DIR=${BIN_DIR:-/usr/lib/ignite-hadoop/bin} +ETC_DIR=${ETC_DIR:-/etc/ignite-hadoop} +CONF_DIR=${CONF_DIR:-${ETC_DIR}/conf.dist} + +install -d -m 0755 $PREFIX/$LIB_DIR +install -d -m 0755 $PREFIX/$LIB_DIR/libs +install -d -m 0755 $PREFIX/$DOC_DIR +install -d -m 0755 $PREFIX/$BIN_DIR +install -d -m 0755 $PREFIX/$BIN_DIR/include +install -d -m 0755 $PREFIX/$ETC_DIR +install -d -m 0755 $PREFIX/$CONF_DIR +install -d -m 0755 $PREFIX/$MAN_DIR +install -d -m 0755 $PREFIX/var/run/ignite-hadoop/work/ + +# Pattern matches both ignite-hadoop-*.zip and incubator-ignite-*.zip: +unzip -x $BUILD_DIR/*ignite-*.zip + +UNZIP_DIR=*ignite-*/ +cp -ar $UNZIP_DIR/libs $PREFIX/$LIB_DIR +cp -a $UNZIP_DIR/config/* $PREFIX/$CONF_DIR +cp -ra $UNZIP_DIR/bin/* $PREFIX/$BIN_DIR + +ln -s $ETC_DIR/conf $PREFIX/$LIB_DIR/config +# Create unversioned softlinks to the main libraries +for dir in $PREFIX/$LIB_DIR/libs $PREFIX/$LIB_DIR/libs/ignite-hadoop ; do + (cd $dir && + for j in ignite-*.jar; do + if [[ $j =~ ignite-(.*)-${IGNITE_HADOOP_VERSION}(.*).jar ]]; then + name=${BASH_REMATCH[1]} + ln -s $j ignite-$name.jar + fi + done) +done + +wrapper=$PREFIX/usr/bin/ignite-hadoop +mkdir -p `dirname $wrapper` +cat > $wrapper <<EOF +#!/bin/bash + +BIGTOP_DEFAULTS_DIR=\${BIGTOP_DEFAULTS_DIR-/etc/default} +[ -n "\${BIGTOP_DEFAULTS_DIR}" -a -r \${BIGTOP_DEFAULTS_DIR}/hadoop ] && . \${BIGTOP_DEFAULTS_DIR}/hadoop +[ -n "\${BIGTOP_DEFAULTS_DIR}" -a -r \${BIGTOP_DEFAULTS_DIR}/ignite-hadoop ] && . \${BIGTOP_DEFAULTS_DIR}/ignite-hadoop + +exec /usr/lib/ignite-hadoop/bin/include/service.sh \$1 ignite-hadoop +EOF +chmod 755 $wrapper + +install -d -m 0755 $PREFIX/usr/bin http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/compat ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/compat b/bigtop-packages/src/deb/ignite-hadoop/compat new file mode 100644 index 0000000..7f8f011 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/compat @@ -0,0 +1 @@ +7 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/control ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/control b/bigtop-packages/src/deb/ignite-hadoop/control new file mode 100644 index 0000000..700c388 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/control @@ -0,0 +1,34 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +Source: ignite-hadoop +Section: misc +Priority: extra +Maintainer: Bigtop <[email protected]> +Build-Depends: debhelper (>= 7.0.50~) +Standards-Version: 3.8.0 +Homepage: http://ignite.incubator.apache.org/ + +Package: ignite-hadoop +Architecture: all +Depends: adduser, hadoop-hdfs, hadoop-mapreduce, bigtop-utils (>= 0.7) +Description: Ignite is an open-source, distributed, in-memory computation platform + . + * HDFS caching and MR performance booster + +Package: ignite-hadoop-doc +Architecture: all +Section: doc +Description: Ignite Documentation + Documentation for Ignite Hadoop Accelerator http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/copyright ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/copyright b/bigtop-packages/src/deb/ignite-hadoop/copyright new file mode 100644 index 0000000..89a5120 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/copyright @@ -0,0 +1,15 @@ +Format: http://dep.debian.net/deps/dep5 +Source: https://git-wip-us.apache.org/repos/asf/incubator-ignite +Upstream-Name: none + +Files: * +Copyright: 2014 - 2015, The Apache Software Foundation +License: Apache-2.0 + +Files debian/* +Copyright: 2011, The Apache Software Foundation +License: Apache-2.0 + +License: Apache-2.0 + On Debian systems, the complete text of the Apache 2.0 license + can be found in "/usr/share/common-licenses/Apache-2.0". http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/format ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/format b/bigtop-packages/src/deb/ignite-hadoop/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/format @@ -0,0 +1 @@ +3.0 (quilt) http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.dirs ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.dirs b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.dirs new file mode 100644 index 0000000..24049ad --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.dirs @@ -0,0 +1 @@ +/usr/share/doc/ignite-hadoop-doc/ http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.install ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.install b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.install new file mode 100644 index 0000000..37554f7 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop-doc.install @@ -0,0 +1 @@ +/usr/share/doc/ignite-hadoop-doc http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.dirs ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.dirs b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.dirs new file mode 100644 index 0000000..75823e6 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.dirs @@ -0,0 +1,4 @@ +/usr/bin +/var/log/ignite-hadoop +/var/run/ignite-hadoop +/etc/default http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.install ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.install b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.install new file mode 100644 index 0000000..47c4ca8 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.install @@ -0,0 +1,3 @@ +/usr/lib/ignite-hadoop +/usr/bin/ignite-hadoop +/etc/ignite-hadoop http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.manpages ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.manpages b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.manpages new file mode 100644 index 0000000..03d204f --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.manpages @@ -0,0 +1 @@ +debian/ignite-hadoop.1 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.postinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.postinst b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.postinst new file mode 100644 index 0000000..5703d9e --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.postinst @@ -0,0 +1,47 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# postinst script for ignite-hadoop + +gg_hadoop_pkg_name=ignite-hadoop + +set -e + +case "$1" in + configure) + # Install config alternatives + update-alternatives --install /etc/${gg_hadoop_pkg_name}/conf ${gg_hadoop_pkg_name}-conf \ + /etc/${gg_hadoop_pkg_name}/conf.dist 30 + + mkdir -p /var/log/${gg_hadoop_pkg_name} /var/run/${gg_hadoop_pkg_name} /var/run/${gg_hadoop_pkg_name}/work || : + chown ignite:ignite /var/log/${gg_hadoop_pkg_name} /var/run/${gg_hadoop_pkg_name} + chmod g+w /var/log/${gg_hadoop_pkg_name} /var/run/${gg_hadoop_pkg_name} + chown ignite:ignite /var/run/${gg_hadoop_pkg_name} /var/run/${gg_hadoop_pkg_name}/work + chmod 0755 /var/run/${gg_hadoop_pkg_name} + chmod 1777 /var/run/${gg_hadoop_pkg_name}/work + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst new file mode 100644 index 0000000..b3b7db9 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.preinst @@ -0,0 +1,61 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# preinst script for ignite-hadoop +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <new-preinst> `install' +# * <new-preinst> `install' <old-version> +# * <new-preinst> `upgrade' <old-version> +# * <old-preinst> `abort-upgrade' <new-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + install|upgrade) + if ! getent passwd ignite >/dev/null; then + # Adding system user: ignite. + adduser \ + --system \ + --group \ + --home /var/run/ignite-hadoop \ + --gecos "Ignite User" \ + --shell /bin/bash \ + ignite >/dev/null + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.prerm ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.prerm b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.prerm new file mode 100644 index 0000000..feacfd1 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/ignite-hadoop.prerm @@ -0,0 +1,55 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# prerm script for ignite-hadoop +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <prerm> `remove' +# * <old-prerm> `upgrade' <new-version> +# * <new-prerm> `failed-upgrade' <old-version> +# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version> +# * <deconfigured's-prerm> `deconfigure' `in-favour' +# <package-being-installed> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + remove|upgrade|deconfigure) + update-alternatives --remove ignite-hadoop-conf /etc/ignite-hadoop/conf.dist || : + ;; + + failed-upgrade) + ;; + + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/install_init_scripts.sh ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/install_init_scripts.sh b/bigtop-packages/src/deb/ignite-hadoop/install_init_scripts.sh new file mode 100644 index 0000000..6bb2775 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/install_init_scripts.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +SRC_PKG=ignite-hadoop + +service_pkgdir=debian/$SRC_PKG +debdir=$service_pkgdir/DEBIAN +mkdir -p $service_pkgdir/etc/init.d/ $debdir +sed -i -e "s|@IGNITE_DAEMON@|ignite-hadoop|" debian/ignite-hadoop.svc +echo bash debian/init.d.tmpl debian/ignite-hadoop.svc deb $service_pkgdir/etc/init.d/$SRC_PKG +bash debian/init.d.tmpl debian/ignite-hadoop.svc deb $service_pkgdir/etc/init.d/$SRC_PKG + +sed -e "s|@IGNITE_DAEMON@|ignite-hadoop|" debian/service-postinst.tpl > $debdir/postinst +sed -e "s|@IGNITE_DAEMON@|ignite-hadoop|" debian/service-postrm.tpl > $debdir/postrm +echo /etc/init.d/$SRC_PKG > $debdir/conffiles +chmod 755 $debdir/postinst $debdir/postrm $service_pkgdir/etc/init.d* http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/rules ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/rules b/bigtop-packages/src/deb/ignite-hadoop/rules new file mode 100644 index 0000000..b3bc5fe --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/rules @@ -0,0 +1,47 @@ +#!/usr/bin/make -f +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# -*- makefile -*- +SHELL=/bin/bash + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +ignite-hadoop_pkg_name=ignite-hadoop + +%: + dh $@ + +override_dh_auto_build: + bash debian/do-component-build -Dmaven.repo.local=${HOME}/.m2/repository + + +override_dh_auto_install: + cp debian/ignite-hadoop.default debian/${ignite-hadoop_pkg_name}/etc/default/${ignite-hadoop_pkg_name} + env HADOOP_VERSION=${IGNITE_HADOOP_BASE_VERSION} \ + bash -x debian/install_ignite.sh \ + --build-dir=target \ + --conf-dir=/etc/${ignite-hadoop_pkg_name}/conf.dist \ + --doc-dir=usr/share/doc/${ignite-hadoop_pkg_name}-doc \ + --prefix=debian/tmp + ln -s /var/log/${ignite-hadoop_pkg_name} debian/tmp/usr/lib/${ignite-hadoop_pkg_name}/logs + ln -s /var/run/${ignite-hadoop_pkg_name} debian/tmp/usr/lib/${ignite-hadoop_pkg_name}/pids + + bash debian/install_init_scripts.sh http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/service-postinst.tpl ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/service-postinst.tpl b/bigtop-packages/src/deb/ignite-hadoop/service-postinst.tpl new file mode 100644 index 0000000..d7d372e --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/service-postinst.tpl @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# postinst script for ignite-hadoop +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postinst> `configure' <most-recently-configured-version> +# * <old-postinst> `abort-upgrade' <new version> +# * <conflictor's-postinst> `abort-remove' `in-favour' <package> +# <new-version> +# * <postinst> `abort-remove' +# * <deconfigured's-postinst> `abort-deconfigure' `in-favour' +# <failed-install-package> <version> `removing' +# <conflicting-package> <version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + configure) + update-rc.d @IGNITE_DAEMON@ defaults >/dev/null || exit 1 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/service-postrm.tpl ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/service-postrm.tpl b/bigtop-packages/src/deb/ignite-hadoop/service-postrm.tpl new file mode 100644 index 0000000..321f996 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/service-postrm.tpl @@ -0,0 +1,51 @@ +#!/bin/bash +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +# postrm script for ignite-hadoop +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * <postrm> `remove' +# * <postrm> `purge' +# * <old-postrm> `upgrade' <new-version> +# * <new-postrm> `failed-upgrade' <old-version> +# * <new-postrm> `abort-install' +# * <new-postrm> `abort-install' <old-version> +# * <new-postrm> `abort-upgrade' <old-version> +# * <disappearer's-postrm> `disappear' <overwriter> +# <overwriter-version> +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +case "$1" in + purge) + update-rc.d -f @IGNITE_DAEMON@ remove > /dev/null || exit 1 + ;; + remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + ;; + + *) + echo "postrm called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/deb/ignite-hadoop/source/format ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/deb/ignite-hadoop/source/format b/bigtop-packages/src/deb/ignite-hadoop/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/bigtop-packages/src/deb/ignite-hadoop/source/format @@ -0,0 +1 @@ +3.0 (quilt) http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop-packages/src/rpm/ignite-hadoop/SPECS/ignite-hadoop.spec ---------------------------------------------------------------------- diff --git a/bigtop-packages/src/rpm/ignite-hadoop/SPECS/ignite-hadoop.spec b/bigtop-packages/src/rpm/ignite-hadoop/SPECS/ignite-hadoop.spec new file mode 100644 index 0000000..b68bac8 --- /dev/null +++ b/bigtop-packages/src/rpm/ignite-hadoop/SPECS/ignite-hadoop.spec @@ -0,0 +1,223 @@ +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +%define etc_ignite_conf %{_sysconfdir}/%{name}/conf +%define etc_ignite_conf_dist %{etc_ignite_conf}.dist +%define ignite_home /usr/lib/%{name} +%define bin_ignite %{ignite_home}/bin +%define lib_ignite %{ignite_home}/lib +%define conf_ignite %{ignite_home}/config +%define logs_ignite %{ignite_home}/logs +%define pids_ignite %{ignite_home}/pids +%define man_dir %{_mandir} +%define ignite_username ignite +%define ignite_services ignite-hadoop +%define vcs_tag %{ignite_hadoop_version} + +%if %{?suse_version:1}0 + +# Only tested on openSUSE 11.4. le'ts update it for previous release when confirmed +%if 0%{suse_version} > 1130 +%define suse_check \# Define an empty suse_check for compatibility with older sles +%endif + +# SLES is more strict anc check all symlinks point to valid path +# But we do point to a hadoop jar which is not there at build time +# (but would be at install time). +# Since our package build system does not handle dependencies, +# these symlink checks are deactivated +%define __os_install_post \ + %{suse_check} ; \ + /usr/lib/rpm/brp-compress ; \ + %{nil} + +%define doc_ignite %{_docdir}/%{name} +%global initd_dir %{_sysconfdir}/rc.d +%define alternatives_cmd update-alternatives + +%else + +# CentOS 5 does not have any dist macro +# So I will suppose anything that is not Mageia or a SUSE will be a RHEL/CentOS/Fedora +%if %{!?mgaversion:1}0 + +# FIXME: brp-repack-jars uses unzip to expand jar files +# Unfortunately guice-2.0.jar pulled by ivy contains some files and directories without any read permission +# and make whole process to fail. +# So for now brp-repack-jars is being deactivated until this is fixed. +# See BIGTOP-294 +#%define __os_install_post \ +# /usr/lib/rpm/redhat/brp-compress ; \ +# /usr/lib/rpm/redhat/brp-strip-static-archive %{__strip} ; \ +# /usr/lib/rpm/redhat/brp-strip-comment-note %{__strip} %{__objdump} ; \ +# /usr/lib/rpm/brp-python-bytecompile ; \ +# %{nil} +%endif + +%define doc_ignite %{_docdir}/%{name}-%{ignite_hadoop_version} +%global initd_dir %{_sysconfdir}/rc.d/init.d +%define alternatives_cmd alternatives + +%endif + + +Name: ignite-hadoop +Version: %{ignite_hadoop_version} +Release: %{ignite_hadoop_release} +Summary: Ignite Hadoop accelerator. The system provides for in-memory caching of HDFS data and MR performance improvements +URL: http://ignite.incubator.apache.org/ +Group: Development/Libraries +Buildroot: %{_topdir}/INSTALL/%{name}-%{version} +License: APL2 +Source0: ignite-hadoop-%{ignite_hadoop_base_version}.tar.gz +Source1: do-component-build +Source2: install_ignite.sh +Source3: ignite-hadoop.svc +Source4: init.d.tmpl +Source5: ignite-hadoop.default +BuildArch: noarch +Requires: coreutils, /usr/sbin/useradd, /sbin/chkconfig, /sbin/service +Requires: hadoop-hdfs, hadoop-mapreduce, bigtop-utils >= 0.7 + +%if 0%{?mgaversion} +Requires: bsh-utils +%else +Requires: sh-utils +%endif + +%description +Ignite is an open-source, distributed, in-memory computation platform + + * HDFS caching and MR performance booster + +%package service +Summary: Hadoop Accelerator platform +Group: System/Daemons +Requires: %{name} = %{version}-%{release} +Requires(pre): %{name} = %{version}-%{release} + +%if %{?suse_version:1}0 +# Required for init scripts +Requires: insserv +%endif + +%if 0%{?mgaversion} +# Required for init scripts +Requires: initscripts +%endif + +# CentOS 5 does not have any dist macro +# So I will suppose anything that is not Mageia or a SUSE will be a RHEL/CentOS/Fedora +%if %{!?suse_version:1}0 && %{!?mgaversion:1}0 +# Required for init scripts +Requires: redhat-lsb +%endif + +%description service +Ignite Hadoop accelerator package + +%package doc +Summary: Ignite Documentation +Group: Documentation +BuildArch: noarch + +%description doc +Documentation for Ignite platform + +%prep +%setup -n ignite-hadoop-%{vcs_tag} + +%build +bash %{SOURCE1} + +%install +%__rm -rf $RPM_BUILD_ROOT +env IGNITE_HADOOP_VERSION=%{version} bash %{SOURCE2} \ + --build-dir=target \ + --doc-dir=%{doc_ignite} \ + --conf-dir=%{etc_ignite_conf_dist} \ + --prefix=$RPM_BUILD_ROOT + +%__install -d -m 0755 $RPM_BUILD_ROOT/%{initd_dir}/ + +%__install -d -m 0755 $RPM_BUILD_ROOT/etc/default/ +%__install -m 0644 %{SOURCE5} $RPM_BUILD_ROOT/etc/default/%{name} + +%__install -d -m 0755 %{buildroot}/%{_localstatedir}/log/%{name} + +ln -s %{_localstatedir}/log/%{name} %{buildroot}/%{logs_ignite} + +%__install -d -m 0755 %{buildroot}/%{_localstatedir}/run/%{name} +ln -s %{_localstatedir}/run/%{name} %{buildroot}/%{pids_ignite} + +for service in %{ignite_services} +do + init_file=$RPM_BUILD_ROOT/%{initd_dir}/%{name} + %__sed -e "s|@IGNITE_DAEMON@|${service}|" %{SOURCE3} > ${RPM_SOURCE_DIR}/ignite.node + bash %{SOURCE4} ${RPM_SOURCE_DIR}/ignite.node rpm $init_file + + chmod 755 $init_file +done + +%__install -d -m 0755 $RPM_BUILD_ROOT/usr/bin + +# Pull hadoop from their packages +rm -f $RPM_BUILD_ROOT/%{lib_ignite}/libs/{hadoop}*.jar + +%pre +getent group ignite 2>/dev/null >/dev/null || /usr/sbin/groupadd -r ignite +getent passwd ignite 2>&1 > /dev/null || /usr/sbin/useradd -c "ignite" -s /sbin/nologin -g ignite -r -d /var/run/ignite ignite 2> /dev/null || : + +%post +%{alternatives_cmd} --install %{etc_ignite_conf} %{name}-conf %{etc_ignite_conf_dist} 30 + +%preun +if [ "$1" = 0 ]; then + %{alternatives_cmd} --remove %{name}-conf %{etc_ignite_conf_dist} || : +fi + +####################### +#### FILES SECTION #### +####################### +%files +%defattr(-,ignite,ignite) +%dir %{_localstatedir}/log/%{name} +%dir %{_localstatedir}/run/%{name} + +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/default/%{name} +%{ignite_home} +/usr/bin/%{name} +%config(noreplace) %{etc_ignite_conf_dist} + +%files doc +%defattr(-,root,root) +%doc %{doc_ignite}/ + +%define service_macro() \ +%files %1 \ +%attr(0755,root,root)/%{initd_dir}/%{name} \ +%post %1 \ +chkconfig --add %{name} \ +\ +%preun %1 \ +if [ $1 = 0 ] ; then \ + service %{name} stop > /dev/null 2>&1 \ + chkconfig --del %{name} \ +fi \ +%postun %1 \ +if [ $1 -ge 1 ]; then \ + service %{name} condrestart >/dev/null 2>&1 \ +fi +%service_macro service http://git-wip-us.apache.org/repos/asf/bigtop/blob/fff403cd/bigtop.mk ---------------------------------------------------------------------- diff --git a/bigtop.mk b/bigtop.mk index 5c8322a..c42cb82 100644 --- a/bigtop.mk +++ b/bigtop.mk @@ -65,6 +65,20 @@ GRIDGAIN_HADOOP_SITE=$(GRIDGAIN_HADOOP_DOWNLOAD_PATH) GRIDGAIN_HADOOP_ARCHIVE=$(GRIDGAIN_HADOOP_DOWNLOAD_PATH) $(eval $(call PACKAGE,gridgain-hadoop,GRIDGAIN_HADOOP)) +# Apache Ignite +IGNITE_HADOOP_NAME=ignite-hadoop +IGNITE_HADOOP_RELNOTES_NAME=Ignite +IGNITE_HADOOP_PKG_NAME=$(IGNITE_HADOOP_NAME) +IGNITE_HADOOP_BASE_VERSION=1.0.0 +IGNITE_HADOOP_PKG_VERSION=$(IGNITE_HADOOP_BASE_VERSION) +IGNITE_HADOOP_RELEASE_VERSION=1 +IGNITE_HADOOP_TARBALL_DST=$(IGNITE_HADOOP_NAME)-$(IGNITE_HADOOP_BASE_VERSION).tar.gz +IGNITE_HADOOP_TARBALL_SRC=incubator-ignite-1.0.0-src.zip +IGNITE_HADOOP_DOWNLOAD_PATH=http://apache-mirror.rbc.ru/pub/apache/incubator/ignite/1.0.0/ +IGNITE_HADOOP_SITE=$(IGNITE_HADOOP_DOWNLOAD_PATH) +IGNITE_HADOOP_ARCHIVE=$(IGNITE_HADOOP_DOWNLOAD_PATH) +$(eval $(call PACKAGE,ignite-hadoop,IGNITE_HADOOP)) + # HBase HBASE_NAME=hbase HBASE_RELNOTES_NAME=Apache HBase
