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 57AB110A32 for ; Tue, 7 Jan 2014 00:36:54 +0000 (UTC) Received: (qmail 10330 invoked by uid 500); 7 Jan 2014 00:36:51 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 10264 invoked by uid 500); 7 Jan 2014 00:36:51 -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 10222 invoked by uid 500); 7 Jan 2014 00:36:51 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 10185 invoked by uid 99); 7 Jan 2014 00:36:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jan 2014 00:36:51 +0000 Date: Tue, 7 Jan 2014 00:36:51 +0000 (UTC) From: "Gunther Hagleitner (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6105) LongWritable.compareTo needs shimming 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-6105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gunther Hagleitner updated HIVE-6105: ------------------------------------- Attachment: HIVE-6105.1.patch Don't see it in the q. Reuploading... > LongWritable.compareTo needs shimming > ------------------------------------- > > Key: HIVE-6105 > URL: https://issues.apache.org/jira/browse/HIVE-6105 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Gunther Hagleitner > Assignee: Navis > Attachments: HIVE-6105.1.patch, HIVE-6105.1.patch.txt > > > Compiled hive against hadoop-2. Running tests on hadoop 1 gives: > Caused by: java.lang.NoSuchMethodError: org.apache.hadoop.io.LongWritable.compareTo(Lorg/apache/hadoop/io/LongWritable;)I > at org.apache.hadoop.hive.ql.udf.UDAFPercentile$MyComparator.compare(UDAFPercentile.java:62) > at org.apache.hadoop.hive.ql.udf.UDAFPercentile$MyComparator.compare(UDAFPercentile.java:58) > at java.util.Arrays.mergeSort(Arrays.java:1270) > at java.util.Arrays.sort(Arrays.java:1210) > at java.util.Collections.sort(Collections.java:157) > at org.apache.hadoop.hive.ql.udf.UDAFPercentile$PercentileLongEvaluator.terminate(UDAFPercentile.java:194) > ... 20 more > I think the problem is that the compareTo function has changed from using Object to using LongWritable as an argument. Seems this needs a shim. However, we should also make sure that this shim doesn't hit performance too hard. -- This message was sent by Atlassian JIRA (v6.1.5#6160)