You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@fluo.apache.org by GitBox <gi...@apache.org> on 2018/09/21 16:37:22 UTC

[GitHub] mikewalch commented on a change in pull request #198: Added Accumulo and Hadoop compat checks

mikewalch commented on a change in pull request #198: Added Accumulo and Hadoop compat checks
URL: https://github.com/apache/fluo-uno/pull/198#discussion_r219557565
 
 

 ##########
 File path: conf/uno.conf
 ##########
 @@ -91,6 +91,27 @@ 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, these
+# constraints may not apply.  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 [[ -z "$ACCUMULO_REPO" ]]; then
+  if [[ "${ACCUMULO_VERSION}" = 1.* && ! "${HADOOP_VERSION}" = 2.* ]]; then
+    echo "ERROR from uno.conf : When using Accumuo 1.x, expect Hadoop 2.x not $HADOOP_VERSION"
 
 Review comment:
   should be `Accumulo`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services