Skip to content
Permalink
Browse files
Redirect message to prevent bash ERROR (#230)
  • Loading branch information
milleruntime authored and ctubbsii committed Sep 19, 2019
1 parent 16b13ae commit 8b25ea85d50733f0ca56d63cbffd4cdf6182ae73
Showing 1 changed file with 3 additions and 3 deletions.
@@ -95,17 +95,17 @@ fi
# consider submitting an issue or PR.

if [[ "${HADOOP_VERSION}" = 1.* ]]; then
echo "ERROR from uno.conf : Hadoop 1.x is not supported"
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"
echo "ERROR from uno.conf : When using Accumulo 1.x, expect Hadoop 2.x not $HADOOP_VERSION" 1>&2
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"
echo "ERROR from uno.conf : When using Accumulo 2.x, expect Hadoop 3.x not $HADOOP_VERSION" 1>&2
exit 1
fi

0 comments on commit 8b25ea8

Please sign in to comment.