You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Henning Kropp (JIRA)" <ji...@apache.org> on 2013/10/31 08:49:26 UTC
[jira] [Updated] (PIG-3554) JobConf in UDFContext NULL when with
@MonitoredUDF
[ https://issues.apache.org/jira/browse/PIG-3554?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Kropp updated PIG-3554:
-------------------------------
Attachment: TestJobConf.java
A simple UDF to reproduce the Problem. It's a monitored UDF and when executed on the back-end it prints a out the following log message:
{code}
2013-10-30 19:24:09,516 ERROR TestJobConf: java.util.concurrent.ExecutionException: java.lang.NullPointerException
2013-10-30 19:24:10,388 ERROR TestJobConf: java.util.concurrent.ExecutionException: java.lang.NullPointerException
2013-10-30 19:24:10,880 ERROR TestJobConf: java.util.concurrent.ExecutionException: java.lang.NullPointerException
{code}
Comment out the MonitoredUDF Annotation and you'll this messages:
{code}
Configuration: core-default.xml, core-site.xml, mapred-default.xml, mapred-site.xml, hdfs-default.xml, hdfs-site.xml, .....
{code}
It should be possible to execute the attached UDF in the following manner:
{code}
A = LOAD 'data' USING PigStorage();
B = FOREACH A GENERATE TestJobConf(*);
DUMP B;
{code}
> JobConf in UDFContext NULL when with @MonitoredUDF
> --------------------------------------------------
>
> Key: PIG-3554
> URL: https://issues.apache.org/jira/browse/PIG-3554
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.11.1
> Environment: hadoop 0.20.2
> jdk6
> back-end
> Reporter: Henning Kropp
> Labels: udf
> Attachments: TestJobConf.java
>
>
> In the UDFContext the JobConf is always Null, when used with @MonitoredUDF
--
This message was sent by Atlassian JIRA
(v6.1#6144)