Closed giem-git closed 6 months ago
Hive uses log4j2 logger, but log4j v1 jars are also included in its CLASSPATH. This generates errors when configuring log4j for ranger plugin auditlogs
Log4j v1 jars are included by the following line in hive-env.sh.j2 template :
hive-env.sh.j2
export AUX_CLASSPATH="{{ tez_install_dir }}/*:{{ tez_install_dir }}/lib/*"
*
log4j jars from tez should not be included in hive CLASSPATH
hive-env.sh.j2 ansible template should be fixed to remove wildcards from hive CLASSPATH and filter out log4j jars when including tez jars
CLASSPATH
tez
Hive uses log4j2 logger, but log4j v1 jars are also included in its CLASSPATH. This generates errors when configuring log4j for ranger plugin auditlogs
Log4j v1 jars are included by the following line in
hive-env.sh.j2
template :*
in the CLASSPATH is considered bad practice.log4j jars from tez should not be included in hive CLASSPATH
hive-env.sh.j2
ansible template should be fixed to remove wildcards from hiveCLASSPATH
and filter out log4j jars when includingtez
jars