You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone, I'm a little bit new using spark that's why I'm asking here:
What is the best way to manage errors?
I need to load a large csv file and everything works fine but if some data for particular columns are corrupt (like float contains string texts, etc) the application just stop the process.
I would like to handle errors, catch per row maybe?, create a log with them, send emails, etc.
Also, I will need to continue the process if an error ocurrs trying to save a dataframe into a database for example, not just drop the process.
I understand that inside scala there are different classes like Try, Success and Failure but was trying to dig into the code here and couldn't find something similar.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello everyone, I'm a little bit new using spark that's why I'm asking here:
What is the best way to manage errors?
I need to load a large csv file and everything works fine but if some data for particular columns are corrupt (like float contains string texts, etc) the application just stop the process.
I would like to handle errors, catch per row maybe?, create a log with them, send emails, etc.
Also, I will need to continue the process if an error ocurrs trying to save a dataframe into a database for example, not just drop the process.
I understand that inside scala there are different classes like Try, Success and Failure but was trying to dig into the code here and couldn't find something similar.
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions