This is an automated email from the ASF dual-hosted git repository. kturner pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/fluo-uno.git
The following commit(s) were added to refs/heads/master by this push: new 933b094 Added Accumulo and Hadoop compat checks (#198) 933b094 is described below commit 933b094760a12dfc996bb0bc78f2d04e87c9e313 Author: Keith Turner <ke...@deenlo.com> AuthorDate: Fri Sep 21 13:12:23 2018 -0400 Added Accumulo and Hadoop compat checks (#198) --- conf/uno.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/conf/uno.conf b/conf/uno.conf index 788d29f..1595057 100644 --- a/conf/uno.conf +++ b/conf/uno.conf @@ -91,6 +91,29 @@ if [[ -n "$FLUO_YARN_REPO" ]]; then export FLUO_YARN_TARBALL=fluo-yarn-$FLUO_YARN_VERSION-bin.tar.gz fi +# Version compatability checks +# ---------------------------- +# Apache built Accumuo 1.x only works with Hadoop 2.x. Apache built Accumulo +# 2.x only works with Hadoop 3.x. However if building Accumulo 1.x, it can +# work with Hadoop 3.x. The following sanity checks fail fast when versions +# are incompatible. If the checks cause a problem, comment them out and +# consider submitting an issue or PR. + +if [[ "${HADOOP_VERSION}" = 1.* ]]; then + echo "ERROR from uno.conf : Hadoop 1.x is not supported" + exit 1 +fi + +if [[ -z "$ACCUMULO_REPO" && "${ACCUMULO_VERSION}" = 1.* && ! "${HADOOP_VERSION}" = 2.* ]]; then + echo "ERROR from uno.conf : When using Accumulo 1.x, expect Hadoop 2.x not $HADOOP_VERSION" + exit 1 +fi + +if [[ "${ACCUMULO_VERSION}" = 2.* && ! "${HADOOP_VERSION}" = 3.* ]]; then + echo "ERROR from uno.conf : When using Accumulo 2.x, expect Hadoop 3.x not $HADOOP_VERSION" + exit 1 +fi + # Installation directories # ------------------------ # Software installation directory