This is the sample used by Order by and Skewed Join. It is supposed to retrieve from input edge the first time and cached into ObjectCache. The code to cache it is in WeightedRangePartitionerTez/SkewedPartitionerTez, and later PigProcessor.collectSample will get it directly from ObjectCache.
On Tue, Jun 3, 2014 at 12:24 PM, Chen He <[email protected]> wrote: > code checking implies that the ObjectCache is trying to get something from > a Map but it is not there. But what is the purpose of using ObjectCache in > PIG on TEZ? > > > On Tue, Jun 3, 2014 at 1:50 PM, Chen He <[email protected]> wrote: > >> I am using pig -x tez_local to test tez local mode and met following >> problems (use tutorial.jar) >> >> 2014-06-03 11:06:35,964 [pool-1-thread-1] INFO >> org.apache.hadoop.mapred.YarnTezDagChild - Running task, >> taskAttemptId=attempt_1401811588093_0000_1_05_000000_0 >> 2014-06-03 11:06:35,965 [pool-1-thread-1] ERROR >> org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor - >> Encountered exception while processing: >> java.lang.NullPointerException >> at >> org.apache.pig.backend.hadoop.executionengine.tez.ObjectCache.retrieve(ObjectCache.java:47) >> at >> org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor.collectSample(PigProcessor.java:307) >> at >> org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor.initializeInputs(PigProcessor.java:218) >> at >> org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor.run(PigProcessor.java:162) >> at >> org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:317) >> at >> org.apache.hadoop.mapred.YarnTezDagChild$3.run(YarnTezDagChild.java:602) >> at java.security.AccessController.doPrivileged(Native Method) >> at javax.security.auth.Subject.doAs(Subject.java:415) >> at >> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1491) >> at >> org.apache.hadoop.mapred.YarnTezDagChild.pollTask(YarnTezDagChild.java:591) >> at >> org.apache.hadoop.mapred.YarnTezDagChild.runTask(YarnTezDagChild.java:332) >> at >> org.apache.tez.dag.app.launcher.LocalContainerLauncher$1.run(LocalContainerLauncher.java:250) >> at java.lang.Thread.run(Thread.java:744) >> at >> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) >> at >> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) >> at java.lang.Thread.run(Thread.java:744) >> >> >> Any reply will be appreciated. >> >> Regards! >> >> Chen >> -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
