Skip to content

Commit

Permalink
Merge branch '1.8'
Browse files Browse the repository at this point in the history
  • Loading branch information
dlmarion committed Aug 16, 2016
2 parents 97209ba + 711b421 commit 9091d80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions assemble/bin/bootstrap_config.sh
Expand Up @@ -390,18 +390,18 @@ fi
if [[ ${TYPE} == native ]]; then
if [[ $(uname) == Linux ]]; then
if [[ -z $HADOOP_PREFIX ]]; then
echo "HADOOP_PREFIX not set cannot automatically configure LD_LIBRARY_PATH"
echo "WARNING: HADOOP_PREFIX not set, cannot automatically configure LD_LIBRARY_PATH to include Hadoop native libraries"
else
NATIVE_LIB=$(readlink -ef $(dirname $(for x in $(find $HADOOP_PREFIX -name libhadoop.so); do ld $x 2>/dev/null && echo $x && break; done) 2>>/dev/null) 2>>/dev/null)
if [[ -z $NATIVE_LIB ]]; then
echo -e "Native libraries could not be found for your sytem in: $HADOOP_PREFIX"
echo -e "WARNING: The Hadoop native libraries could not be found for your sytem in: $HADOOP_PREFIX"
else
sed "/# Should the monitor/ i export LD_LIBRARY_PATH=${NATIVE_LIB}:\${LD_LIBRARY_PATH}" ${CONF_DIR}/$ACCUMULO_ENV > temp
mv temp "${CONF_DIR}/$ACCUMULO_ENV"
echo -e "Added ${NATIVE_LIB} to the LD_LIBRARY_PATH"
fi
fi
fi
echo -e "Please remember to compile the native libraries using the bin/build_native_library.sh script and to set the LD_LIBRARY_PATH variable in the ${CONF_DIR}/accumulo-env.sh script if needed."
echo -e "Please remember to compile the Accumulo native libraries using the bin/build_native_library.sh script and to set the LD_LIBRARY_PATH variable in the ${CONF_DIR}/accumulo-env.sh script if needed."
fi
echo "Setup complete"

0 comments on commit 9091d80

Please sign in to comment.