java.lang.NoClassDefFoundError: org/apache/spark/sql/SparkSession in scala eclipse

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP



java.lang.NoClassDefFoundError: org/apache/spark/sql/SparkSession in scala eclipse



I have written a Spark Job in Java in scala eclipse. If I submit the Job using spark-submit command then it is working fine. but when I run the application in scala eclipse, it gives below error:



Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/spark/sql/SparkSession



it gives error in below line code


val SPARK_SESSION = SparkSession.builder().appName("spark-job1").master("local[*]").getOrCreate()





That means your project's classpath is not configured correctly. How have you set up your dependencies?
– ernest_k
Aug 10 at 6:38





yes i have already setup dependencies and it was working fine before.but suddenly it give this error
– Sanket Bhalodiya
Aug 10 at 7:29









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

Firebase Auth - with Email and Password - Check user already registered

Dynamically update html content plain JS

Creating a leaderboard in HTML/JS