Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> UDFContext NULL JobConf

Copy link to this message
UDFContext NULL JobConf

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();

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? I use Pig 0.11.1

Many thanks in advanced

PS: Just found someone with the same issue
Cheolsoo Park 2013-10-30, 17:36
Henning Kropp 2013-10-30, 17:46
Pradeep Gollakota 2013-10-30, 17:58
Henning Kropp 2013-10-30, 18:34
Cheolsoo Park 2013-10-30, 19:09
Henning Kropp 2013-10-31, 07:49
Henning Kropp 2013-10-30, 16:43