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

Hive: Log4j version and CLASSPATH #835

Closed
giem-git opened this issue Mar 14, 2024 · 0 comments · Fixed by #836
Closed

Hive: Log4j version and CLASSPATH #835

giem-git opened this issue Mar 14, 2024 · 0 comments · Fixed by #836
Assignees
Labels

Comments

@giem-git
Copy link
Contributor

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 :

export AUX_CLASSPATH="{{ tez_install_dir }}/*:{{ tez_install_dir }}/lib/*"
  • Including * 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 hive CLASSPATH and filter out log4j jars when including tez jars

@giem-git giem-git self-assigned this Mar 14, 2024
@giem-git giem-git added the hive label Mar 14, 2024
@giem-git giem-git linked a pull request Mar 14, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant