You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fluo.apache.org by ct...@apache.org on 2020/10/14 20:53:40 UTC
[fluo-uno] branch main updated: Allow use of Hadoop 3.x with
Accumulo 1.10.x in uno.conf (#260)
This is an automated email from the ASF dual-hosted git repository.
ctubbsii pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/fluo-uno.git
The following commit(s) were added to refs/heads/main by this push:
new 6a7c309 Allow use of Hadoop 3.x with Accumulo 1.10.x in uno.conf (#260)
6a7c309 is described below
commit 6a7c30939b0c6e1050e729b652d994b9d7e7d2e9
Author: Mark Owens <jm...@apache.org>
AuthorDate: Wed Oct 14 16:53:25 2020 -0400
Allow use of Hadoop 3.x with Accumulo 1.10.x in uno.conf (#260)
Update version sanity check to allow Hadoop 3.x to be used with Accumulo
versions 1.10 and greater.
---
conf/uno.conf | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/conf/uno.conf b/conf/uno.conf
index dcb90c4..dd51137 100644
--- a/conf/uno.conf
+++ b/conf/uno.conf
@@ -96,14 +96,13 @@ fi
# 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" 1>&2
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" 1>&2
+if [[ -z $ACCUMULO_REPO && ${ACCUMULO_VERSION} =~ ^1[.][0-9][.][0-9]+$ && ! ${HADOOP_VERSION} = 2.* ]]; then
+ echo "ERROR from uno.conf : When using Accumulo versions prior to 1.10.x, expect Hadoop 2.x not $HADOOP_VERSION" 1>&2
exit 1
fi