Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix issue with log4j in rpm install #1890

Merged
merged 1 commit into from May 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy/packaging/rpm/centos/7/SOURCES/geowave-tools.sh
Expand Up @@ -40,7 +40,7 @@ if [ -n "${HADOOP_HOME}" ] && [ -d "${HADOOP_HOME}" ]; then
HADOOP_CLASSPATH=""
for i in $(echo $CLASSPATH | sed "s/:/ /g")
do
if [[ "$i" != *log4j-slf4j-impl*.jar ]]; then
if [[ "$i" != *log4j-slf4j-impl*.jar && "$i" != *slf4j-log4j*.jar ]]; then
HADOOP_CLASSPATH=${HADOOP_CLASSPATH}:$i
fi
done
Expand All @@ -67,9 +67,9 @@ fi
if [ -n "${SPARK_HOME}" ] && [ -d "${SPARK_HOME}" ]; then
. "${SPARK_HOME}"/bin/load-spark-env.sh
SPARK_CLASSPATH=""
for i in $(ls ${SPARK_HOME}/jars/* )
for i in ${SPARK_HOME}/jars/*.jar
do
if [[ "$i" != *log4j-slf4j-impl*.jar && "$i" != *guava*.jar ]]; then
if [[ "$i" != *log4j-slf4j-impl*.jar && "$i" != *guava*.jar && "$i" != *slf4j-log4j*.jar ]]; then
SPARK_CLASSPATH=${SPARK_CLASSPATH}:$i
fi
done
Expand Down