Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E42C7200BF7 for ; Mon, 9 Jan 2017 09:19:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E2EA0160B49; Mon, 9 Jan 2017 08:19:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 4123E160B3E for ; Mon, 9 Jan 2017 09:19:59 +0100 (CET) Received: (qmail 23961 invoked by uid 500); 9 Jan 2017 08:19:58 -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 23944 invoked by uid 99); 9 Jan 2017 08:19:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jan 2017 08:19:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 618822C1F56 for ; Mon, 9 Jan 2017 08:19:58 +0000 (UTC) Date: Mon, 9 Jan 2017 08:19:58 +0000 (UTC) From: "Prasanth Jayachandran (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HIVE-15531) Hive breaks Hadoop commons logging with log4j2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 09 Jan 2017 08:20:00 -0000 [ https://issues.apache.org/jira/browse/HIVE-15531?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15811016#comment-15811016 ] Prasanth Jayachandran edited comment on HIVE-15531 at 1/9/17 8:19 AM: ---------------------------------------------------------------------- We used to have log4j-jcl bridge before when hive used both commons logging and slf4j. We then moved hive completely use slf4j removing the log4j-jcl bridge as it is no longer required. This is the commit that moved to slf4j and remove log4j-jcl bridge. https://github.com/apache/hive/commit/a8ea6d82b0b6763f846848afeb5b338ab94e474a Regarding the classpath ordering, we always force loading log4j2 jars first before loading hadoop jars. https://github.com/apache/hive/blob/master/bin/hive#L193 was (Author: prasanth_j): We used to have log4j-jcl bridge before when hive used both commons logging and slf4j. We then moved hive completely use slf4j removing the log4j-jcl bridge as it is no longer. This is the commit that moved to slf4j and remove log4j-jcl bridge. https://github.com/apache/hive/commit/a8ea6d82b0b6763f846848afeb5b338ab94e474a Regarding the classpath ordering, we always force loading log4j2 jars first before loading hadoop jars. https://github.com/apache/hive/blob/master/bin/hive#L193 > Hive breaks Hadoop commons logging with log4j2 > ---------------------------------------------- > > Key: HIVE-15531 > URL: https://issues.apache.org/jira/browse/HIVE-15531 > Project: Hive > Issue Type: Bug > Affects Versions: 2.1.0 > Reporter: Dhiraj Kumar > Assignee: Dhiraj Kumar > Priority: Minor > Attachments: HIVE-15531.patch > > > Hadoop (2.7), which is using Commons-logging is not compatible with log4j2 without bridge. > The bridge is missing in Hive. > This leads to a problem whereby commons-logging initialises a log4j (1.2) version Logger, does not configure it properly since configuration for it is missing and sends logging output to stdout (the default). -- This message was sent by Atlassian JIRA (v6.3.4#6332)