Reply
Highlighted
New Contributor
Posts: 3
Registered: ‎11-13-2018

Sparktask execution error

Hello everyone.

 

This kind of error  in which cases it occur generally? Thank you

 

java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 3 from org.apache.hadoop.hive.ql.exec.spark.SparkTask
at org.apache.hive.jdbc.HiveStatement

Posts: 1,893
Kudos: 432
Solutions: 302
Registered: ‎07-31-2013

Re: Sparktask execution error

As far as the SparkTask goes, the return code 3 may indicate _any/all_ exception caught during job closure [1]. The potential scenarios for this are numerous and cannot be narrowed down with just this message.

The true exception with all its details should be printed on the target server logs (HiveServer2 logs) your JDBC is connecting to. I'd recommend beginning your investigation from there.

[1] - https://github.com/apache/hive/blob/rel/release-3.1.1/ql/src/java/org/apache/hadoop/hive/ql/exec/spa...