You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Gopal V (JIRA)" <ji...@apache.org> on 2018/02/03 01:41:00 UTC
[jira] [Updated] (HIVE-18597) LLAP: Packaging for log4j NDC has two
log4j jars it can pick
[ https://issues.apache.org/jira/browse/HIVE-18597?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gopal V updated HIVE-18597:
---------------------------
Status: Patch Available (was: Open)
> LLAP: Packaging for log4j NDC has two log4j jars it can pick
> ------------------------------------------------------------
>
> Key: HIVE-18597
> URL: https://issues.apache.org/jira/browse/HIVE-18597
> Project: Hive
> Issue Type: Bug
> Reporter: Gopal V
> Assignee: Gopal V
> Priority: Major
> Attachments: HIVE-18597.1.patch
>
>
> The log4j 1 and 2.x jars have NDC classes with identical package names.
> {code}
> // log4j-1.2-API needed for NDC
> org.apache.log4j.NDC.class,
> {code}
> Queries fail with
> {code}
> java.lang.ClassCastException: org.apache.log4j.NDC$DiagnosticContext cannot be cast to java.lang.String
> at org.apache.hadoop.hive.llap.daemon.impl.TaskRunnerCallable.setMDCFromNDC(TaskRunnerCallable.java:312) ~[hive-llap-server-3.0.0-SNAPSHOT.jar:3.0.0-SNAPSHOT]
> {code}
> If the service driver packages the log4j1.x jar instead of the 2.x API shim jar.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)