hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] [Updated] (HIVE-4737) Allow access to MapredContext
Date Fri, 14 Jun 2013 16:12:20 GMT

     [ https://issues.apache.org/jira/browse/HIVE-4737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Nicolas Lalevée updated HIVE-4737:
----------------------------------

    Description: 
In order to tackle HIVE-1016, I have been pointed to HIVE-3628. But MapredContext.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}


  was:
In order to tackle HIVE-1016, I have been pointed to HIVE-3628. But MapredContext.get() is
package protected.

Here is my current work around, a hack which I put in my code:
{quote}
package org.apache.hadoop.hive.ql.exec;

public class MapredContextAccessor {

    public static MapredContext get() {
        return MapredContext.get();
    }

}
{quote}


    
> 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ée
>
> In order to tackle HIVE-1016, I have been pointed to HIVE-3628. But MapredContext.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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message