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 DF20510915 for ; Sun, 16 Jun 2013 03:41:23 +0000 (UTC) Received: (qmail 93025 invoked by uid 500); 16 Jun 2013 03:41:23 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 92737 invoked by uid 500); 16 Jun 2013 03:41:22 -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 92589 invoked by uid 500); 16 Jun 2013 03:41:22 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 92579 invoked by uid 99); 16 Jun 2013 03:41:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Jun 2013 03:41:21 +0000 Date: Sun, 16 Jun 2013 03:41:21 +0000 (UTC) From: "Navis (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4737) Allow access to MapredContext MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4737?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13684= 561#comment-13684561 ]=20 Navis commented on HIVE-4737: ----------------------------- If it would be exposed to client, how about make a interface? =20 > Allow access to MapredContext > ----------------------------- > > Key: HIVE-4737 > URL: https://issues.apache.org/jira/browse/HIVE-4737 > Project: Hive > Issue Type: Improvement > Affects Versions: 0.11.0 > Reporter: Nicolas Lalev=C3=A9e > > In order to tackle HIVE-1016, I have been pointed to HIVE-3628. But Mapre= dContext.get() is package protected. > Here is my current work around, a hack which I put in my code: > {code:java} > package org.apache.hadoop.hive.ql.exec; > public class MapredContextAccessor { > public static MapredContext get() { > return MapredContext.get(); > } > } > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira