Author: vines
Date: Wed May 16 15:17:55 2012
New Revision: 1339219
URL: http://svn.apache.org/viewvc?rev=1339219&view=rev
Log:
ACCUMULO-585 - shifting logic into start-all.sh from config.sh. Users can still
get around, but this will fight the case of fresh users missing the
configuration copy step
Modified:
accumulo/branches/1.4/bin/config.sh
accumulo/branches/1.4/bin/start-all.sh
Modified: accumulo/branches/1.4/bin/config.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.4/bin/config.sh?rev=1339219&r1=1339218&r2=1339219&view=diff
==============================================================================
--- accumulo/branches/1.4/bin/config.sh (original)
+++ accumulo/branches/1.4/bin/config.sh Wed May 16 15:17:55 2012
@@ -35,10 +35,6 @@ export ACCUMULO_HOME=`cd $ACCUMULO_HOME;
if [ -f $ACCUMULO_HOME/conf/accumulo-env.sh ] ; then
. $ACCUMULO_HOME/conf/accumulo-env.sh
-else
- echo "${ACCUMULO_HOME}/conf/accumulo-env.sh does not exist. Please make sure
you configure Accumulo before you run anything"
- echo "We provide examples you can copy in ${ACCUMULO_HOME}/conf/examples/
which are set up for your memory footprint"
- exit 1
fi
if [ -z ${ACCUMULO_LOG_DIR} ]; then
Modified: accumulo/branches/1.4/bin/start-all.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.4/bin/start-all.sh?rev=1339219&r1=1339218&r2=1339219&view=diff
==============================================================================
--- accumulo/branches/1.4/bin/start-all.sh (original)
+++ accumulo/branches/1.4/bin/start-all.sh Wed May 16 15:17:55 2012
@@ -22,6 +22,13 @@ bin=`cd "$bin"; pwd`
. "$bin"/config.sh
unset DISPLAY
+if [ ! -f $ACCUMULO_HOME/conf/accumulo-env.sh ] ; then
+ echo "${ACCUMULO_HOME}/conf/accumulo-env.sh does not exist. Please make sure
you configure Accumulo before you run anything"
+ echo "We provide examples you can copy in ${ACCUMULO_HOME}/conf/examples/
which are set up for your memory footprint"
+ exit 1
+fi
+
+
if [ -z $ZOOKEEPER_HOME ] ; then
echo "ZOOKEEPER_HOME is not set. Please make sure it's set globally or in
conf/accumulo-env.sh"
exit 1