keith-turner closed pull request #198: Added Accumulo and Hadoop compat checks
URL: https://github.com/apache/fluo-uno/pull/198
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

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


 

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to