How Do I Rectify the Serialization Exception Reported When Data Is Imported to Spark Load?
Symptom
When Spark Load is used to import data, error message "java.io.NotSerializableException: org.apache.spark.defense.DefenseRules" is displayed.
Cause Analysis
The org.apache.spark.defense.DefenseRules class of the Spark component does not support serialization.
Procedure
- Delete the spark-sql-defense_2.12-3.3.1-h0.cbu.mrs.330.r9.jar package from the Client installation directory/Spark/spark/jars directory.
- Run the following command to compress the packages in the Spark jars directory again:
cd Client installation directory/Spark/spark/jars
zip -qr spark-archive.zip
- Execute the Spark Load task on the Doris client again.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot