You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Henning Kropp <he...@gmail.com> on 2013/10/30 17:43:09 UTC

UDFContext NULL JobConf

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 the right way to get the JobConf in a UDF and that
the behavior of what is returned when running locally (jira issue).

Any ideas? I am running it on a very old Hadoop version 0.20.2 Are there
some known issues?

Many thanks in advanced