Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Error to read counters into Rank operation counterSize 0

Error to read counters into Rank operation counterSize 0

New Contributor

 

HI ,

When we have zero records in Pig Relation,the Rank failed with Error to read counters into Rank operation counterSize 0.

 

Caused by: java.lang.RuntimeException: Error to read counters into Rank operation counterSize 0
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.saveCounters(JobControlCompiler.java:384)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.updateMROpPlan(JobControlCompiler.java:330)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:370)
at org.apache.pig.PigServer.launchPlan(PigServer.java:1266)
... 16 more
Caused by: java.lang.NullPointerException
at org.apache.hadoop.mapreduce.counters.Limits.filterName(Limits.java:45)
at org.apache.hadoop.mapreduce.counters.Limits.filterGroupName(Limits.java:53)
at org.apache.hadoop.mapreduce.counters.AbstractCounters.getGroup(AbstractCounters.java:210)
at org.apache.hadoop.mapred.Counters.getGroup(Counters.java:91)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.saveCounters(JobControlCompiler.java:358)

 

Thanks in advance for your help.

 

 

 

Thanks,

Vengala Reddy

1 REPLY 1

Re: Error to read counters into Rank operation counterSize 0

Master Guru
This is likely a Apache Pig bug (into assuming records are always present). Can you log a reproducible bug detail report on the Apache Pig bug tracker at https://issues.apache.org/jira/PIG please?