Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 67EE717E57 for ; Tue, 30 Sep 2014 01:15:36 +0000 (UTC) Received: (qmail 70990 invoked by uid 500); 30 Sep 2014 01:15:35 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 70868 invoked by uid 500); 30 Sep 2014 01:15:35 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 70695 invoked by uid 500); 30 Sep 2014 01:15:35 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 70691 invoked by uid 99); 30 Sep 2014 01:15:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Sep 2014 01:15:35 +0000 Date: Tue, 30 Sep 2014 01:15:35 +0000 (UTC) From: "Josh Elser (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-8257) Accumulo introduces old hadoop-client dependency 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-8257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152661#comment-14152661 ] Josh Elser commented on HIVE-8257: ---------------------------------- bq. Could you add the optional tag to the jar: Yeah, I can do that. bq. Do you need the changes in the main pom.xml? Declaring the version in dependencyManagement in the project pom is the proper place to do so. While, the way the two hadoop profiles are configured confuses that a little bit, it is the proper way to do so. If anything, I think the extra versions in the accumulo-handler/pom.xml are unnecessary, but I kept them there to follow suit with the other modules. > Accumulo introduces old hadoop-client dependency > ------------------------------------------------ > > Key: HIVE-8257 > URL: https://issues.apache.org/jira/browse/HIVE-8257 > Project: Hive > Issue Type: Bug > Components: Build Infrastructure > Reporter: Josh Elser > Assignee: Josh Elser > Priority: Critical > Fix For: 0.14.0 > > Attachments: HIVE-8257.1.patch > > > It was brought to my attention that Accumulo is transitively bringing in some artifacts with the wrong version of Hadoop. > Accumulo-1.6.0 sets the Hadoop version at 2.2.0 and uses hadoop-client to get its necessary dependencies. Because there is no dependency with the correct version in Hive, this introduces hadoop-2.2.0 dependencies. > A solution is to make sure that hadoop-client is set with the correct {{hadoop-20S.version}} or {{hadoop-23.version}}. > Snippet from {{mvn dependency:tree -Phadoop-2}} > {noformat} > [INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ hive-accumulo-handler --- > [INFO] org.apache.hive:hive-accumulo-handler:jar:0.14.0-SNAPSHOT > [INFO] +- commons-lang:commons-lang:jar:2.6:compile > [INFO] +- commons-logging:commons-logging:jar:1.1.3:compile > [INFO] +- org.apache.accumulo:accumulo-core:jar:1.6.0:compile > ... > [INFO] | +- org.apache.hadoop:hadoop-client:jar:2.2.0:compile > [INFO] | | +- org.apache.hadoop:hadoop-hdfs:jar:2.4.0:compile > ... > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)