[ https://issues.apache.org/jira/browse/PIG-5416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815770#comment-17815770 ]
Koji Noguchi commented on PIG-5416: ----------------------------------- Issue seems to be on the Spark side. For now, added a silly polling after "waitForJobToEnd" to double check that job is finished. > Spark unit tests failing randomly with "java.lang.RuntimeException: > Unexpected job execution status RUNNING" > ------------------------------------------------------------------------------------------------------------ > > Key: PIG-5416 > URL: https://issues.apache.org/jira/browse/PIG-5416 > Project: Pig > Issue Type: Bug > Components: spark > Reporter: Koji Noguchi > Priority: Minor > Attachments: pig-5416-v01.patch > > > Spark unit tests fail randomly with same errors. > Sample stack trace showing "Caused by: java.lang.RuntimeException: > Unexpected job execution status RUNNING". > {noformat:title=TestBuiltInBagToTupleOrString.testPigScriptForBagToTupleUDF} > Unable to store alias B > org.apache.pig.impl.logicalLayer.FrontendException: ERROR 1002: Unable to > store alias B > at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1783) > at org.apache.pig.PigServer.registerQuery(PigServer.java:708) > at org.apache.pig.PigServer.registerQuery(PigServer.java:721) > at > org.apache.pig.test.TestBuiltInBagToTupleOrString.testPigScriptForBagToTupleUDF(TestBuiltInBagToTupleOrString.java:429) > Caused by: org.apache.pig.impl.plan.VisitorException: ERROR 0: fail to get > the rdds of this spark operator: > at > org.apache.pig.backend.hadoop.executionengine.spark.JobGraphBuilder.visitSparkOp(JobGraphBuilder.java:115) > at > org.apache.pig.backend.hadoop.executionengine.spark.plan.SparkOperator.visit(SparkOperator.java:140) > at > org.apache.pig.backend.hadoop.executionengine.spark.plan.SparkOperator.visit(SparkOperator.java:37) > at > org.apache.pig.impl.plan.DependencyOrderWalker.walk(DependencyOrderWalker.java:87) > at org.apache.pig.impl.plan.PlanVisitor.visit(PlanVisitor.java:46) > at > org.apache.pig.backend.hadoop.executionengine.spark.SparkLauncher.launchPig(SparkLauncher.java:240) > at > org.apache.pig.backend.hadoop.executionengine.HExecutionEngine.launchPig(HExecutionEngine.java:290) > at org.apache.pig.PigServer.launchPlan(PigServer.java:1479) > at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1464) > at org.apache.pig.PigServer.execute(PigServer.java:1453) > at org.apache.pig.PigServer.access$500(PigServer.java:119) > at org.apache.pig.PigServer$Graph.registerQuery(PigServer.java:1778) > Caused by: java.lang.RuntimeException: Unexpected job execution status RUNNING > at > org.apache.pig.tools.pigstats.spark.SparkStatsUtil.isJobSuccess(SparkStatsUtil.java:138) > at > org.apache.pig.tools.pigstats.spark.SparkPigStats.addJobStats(SparkPigStats.java:75) > at > org.apache.pig.tools.pigstats.spark.SparkStatsUtil.waitForJobAddStats(SparkStatsUtil.java:59) > at > org.apache.pig.backend.hadoop.executionengine.spark.JobGraphBuilder.sparkOperToRDD(JobGraphBuilder.java:225) > at > org.apache.pig.backend.hadoop.executionengine.spark.JobGraphBuilder.visitSparkOp(JobGraphBuilder.java:112) > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)