Commit 63779893 by Vishal Suvagia Committed by Sarath Subramanian

ATLAS-3277 : Add default atlas conf path in the import-* scripts

parent 59648d28
...@@ -55,6 +55,11 @@ for i in "${BASEDIR}/hook/hbase/atlas-hbase-plugin-impl/"*.jar; do ...@@ -55,6 +55,11 @@ for i in "${BASEDIR}/hook/hbase/atlas-hbase-plugin-impl/"*.jar; do
ATLASCPPATH="${ATLASCPPATH}:$i" ATLASCPPATH="${ATLASCPPATH}:$i"
done done
if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
ATLAS_CONF_DIR=/etc/atlas/conf
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
# log dir for applications # log dir for applications
ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-$BASEDIR/logs}" ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-$BASEDIR/logs}"
export ATLAS_LOG_DIR export ATLAS_LOG_DIR
......
...@@ -50,6 +50,11 @@ for i in "${BASEDIR}/hook/hive/atlas-hive-plugin-impl/"*.jar; do ...@@ -50,6 +50,11 @@ for i in "${BASEDIR}/hook/hive/atlas-hive-plugin-impl/"*.jar; do
ATLASCPPATH="${ATLASCPPATH}:$i" ATLASCPPATH="${ATLASCPPATH}:$i"
done done
if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
ATLAS_CONF_DIR=/etc/atlas/conf
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
# log dir for applications # log dir for applications
ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-$BASEDIR/logs}" ATLAS_LOG_DIR="${ATLAS_LOG_DIR:-$BASEDIR/logs}"
export ATLAS_LOG_DIR export ATLAS_LOG_DIR
......
...@@ -81,6 +81,11 @@ for i in "${BASEDIR}/"*.jar; do ...@@ -81,6 +81,11 @@ for i in "${BASEDIR}/"*.jar; do
ATLASCPPATH="${ATLASCPPATH}:$i" ATLASCPPATH="${ATLASCPPATH}:$i"
done done
if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
ATLAS_CONF_DIR=/etc/atlas/conf
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
echo "Logging: ${ATLAS_LOG_DIR}/${ATLAS_LOG_FILE}" echo "Logging: ${ATLAS_LOG_DIR}/${ATLAS_LOG_FILE}"
echo "Log config: ${LOG_CONFIG}" echo "Log config: ${LOG_CONFIG}"
......
...@@ -57,7 +57,9 @@ for i in "${BASEDIR}/hook/kafka/atlas-kafka-plugin-impl/"*.jar; do ...@@ -57,7 +57,9 @@ for i in "${BASEDIR}/hook/kafka/atlas-kafka-plugin-impl/"*.jar; do
ATLASCPPATH="${ATLASCPPATH}:$i" ATLASCPPATH="${ATLASCPPATH}:$i"
done done
ATLAS_CONF_DIR=/etc/atlas/conf if [ -z "${ATLAS_CONF_DIR}" ] && [ -e /etc/atlas/conf ];then
ATLAS_CONF_DIR=/etc/atlas/conf
fi
ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR} ATLASCPPATH=${ATLASCPPATH}:${ATLAS_CONF_DIR}
# log dir for applications # log dir for applications
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment