Title
Page icon
Create new category
Edit page index title
Edit category
Edit link
Spark Pipeline Issues
Issue
The SparkContext ClassNotFound Exception is displayed.
Cause
This issue can be due to jars missing from classpath.
Solution
To run spark pipeline, classpath must contain spark jars.
Following are the steps to add spark jobs to classpath.
Run the following command:
source $IW_HOME/bin/env.shOpen the conf.properties file from the $IW_HOME/conf folder.
Search for df_batch_classpath and add $SPARK_HOME/jars/* to the list of jars.
Insert
<SPARK_HOME>/jars/antlr-4.7.jar:<rest of the classpath>at the beginning of thedf_batch_classpathanddf_tomcat_classpathvalues.
For Spark 2.3, perform the following:
Add the antlr jar at the beginning of the classpath.
Add the jackson-databind jar at the beginning of the
dt_interactive_classpathvalue. For example,<SPARK_HOME>/jars/jackson-databind-2.6.7.1.jar:<classpath>.
For more details, refer to our Knowledge Base and Best Practices!
For help, contact our support team!
(C) 2015-2022 Infoworks.io, Inc. and Confidential