cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Getting "Job aborted" exception while saving data to the database

deng_dev
New Contributor III

Hi!
We have job, that runs every hour. It extracts data from the API and saves to the databricks table.
Sometimes job fails with error "org.apache.spark.SparkException". Here is the full error:

An error occurred while calling o7353.saveAsTable.
: org.apache.spark.SparkException: Job aborted. 
... 
Caused by: org.apache.spark.SparkException: Job aborted due to stage failure: Task 1 in stage 177.0 failed 4 times, most recent failure: Lost task 1.3 in stage 177.0 (TID 240) (...): java.lang.NullPointerException

It's happening at the moment of saving data to the table. 
I want to understand why it is happening and it is possible to solve this problem.

Thank you!

 

1 REPLY 1

jose_gonzalez
Databricks Employee
Databricks Employee

Do you have any NULL values in your data? Please verify that you data is valid

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group