Re: UDFContext NULL JobConf

2013-10-31 Thread Henning Kropp
Sure, just did https://issues.apache.org/jira/browse/PIG-3554 Kind regards 2013/10/30 Cheolsoo Park piaozhe...@gmail.com Indeed. Do you mind filing a jira? https://issues.apache.org/jira/browse/PIG On Wed, Oct 30, 2013 at 11:34 AM, Henning Kropp henning.kr...@gmail.com wrote: Wow, I

UDFContext NULL JobConf

2013-10-31 Thread Henning Kropp
Hi, in my UDF (Java) the following code throws and NPE, when executed in -x mapred mode: Configuration jobConf = UDFContext.getUDFContext().getJobConf(); System.err.println(jobConf.toString()); I did not find any useful information as why my JobConf is always null. All I find is that this is

UDFContext NULL JobConf

2013-10-30 Thread Henning Kropp
Hi, I am stuck. In my UDF (Java) extends EvalFunc the following code throws and NPE in exec(), when executed in -x mapred mode: Configuration jobConf = UDFContext.getUDFContext().getJobConf(); System.err.println(jobConf.toString()); I did not find any useful information as why my JobConf is

Re: UDFContext NULL JobConf

2013-10-30 Thread Henning Kropp
is expected on the front-end. Please see the comments in getJobConf() and addJobConf() in the source code: https://svn.apache.org/repos/asf/pig/trunk/src/org/apache/pig/impl/util/UDFContext.java Thanks, Cheolsoo On Wed, Oct 30, 2013 at 9:57 AM, Henning Kropp henning.kr...@gmail.com wrote

Re: UDFContext NULL JobConf

2013-10-30 Thread Henning Kropp
(or at least a sanitized version)? On Wed, Oct 30, 2013 at 10:46 AM, Henning Kropp henning.kr...@gmail.com wrote: Hi, thanks for your reply. I read about the expected behavior on the front-end and I am getting the NPE on the back-end. The Mappers log the Exception during Execution. I am