Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3F2B91834F for ; Sat, 15 Aug 2015 04:36:46 +0000 (UTC) Received: (qmail 45185 invoked by uid 500); 15 Aug 2015 04:36:46 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 45153 invoked by uid 500); 15 Aug 2015 04:36:45 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 45143 invoked by uid 99); 15 Aug 2015 04:36:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Aug 2015 04:36:45 +0000 Date: Sat, 15 Aug 2015 04:36:45 +0000 (UTC) From: "Prasanth Jayachandran (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-11572) Datanucleus loads Log4j1.x Logger from its ClassLoader MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-11572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14698105#comment-14698105 ] Prasanth Jayachandran commented on HIVE-11572: ---------------------------------------------- [~thejas]/[~gopalv] Can someone take a look at this small patch? > Datanucleus loads Log4j1.x Logger from its ClassLoader > ------------------------------------------------------ > > Key: HIVE-11572 > URL: https://issues.apache.org/jira/browse/HIVE-11572 > Project: Hive > Issue Type: Sub-task > Components: Logging > Affects Versions: 2.0.0 > Reporter: Prasanth Jayachandran > Assignee: Prasanth Jayachandran > Fix For: 2.0.0 > > Attachments: HIVE-11572.patch > > > As part of HIVE-11304, we moved from Log4j1.x to Log4j2. But DataNucleus log messages gets logged to console when launching the hive cli. The reason is DataNucleus is trying to load Log4j1.x Logger by traversing its class loader. Although we use log4j-1.2-api bridge we are loading log4j-1.2.16 jar that was pulled by ZooKeeper. We should make sure that there is no log4j-1.2.16 in datanucleus classloader hierarchy (classpath). > DataNucleus logger has this > {code} > NucleusLogger.class.getClassLoader().loadClass("org.apache.log4j.Logger"); > loggerClass = org.datanucleus.util.Log4JLogger.class; > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)