Spark Submit: class does not exists

0 votes

Hi,

When executing below command getting the error "class does not exists". What am I doing wrong?

./spark-submit \
--class com/edureka/Assignments/App.class \
--master yarn \
--deploy-mode client \
/mnt/home/edureka_394914/Assignments-0.0.1-SNAPSHOT.jar

I also copied .jar file at HDFS

/mnt/home/edureka_394914/Assignments-0.0.1-SNAPSHOT.jar /user/edureka_394914/JarFile

spark home path is:

/opt/cloudera/parcels/SPARK2-2.1.0.cloudera2-1.cdh5.7.0.p0.171658/lib/spark2
Jul 26, 2019 in Apache Spark by Rohit
230 views

1 answer to this question.

0 votes

In the command, you have mentioned the package name and class name incorrectly. You have mentioned packagename/classname whereas you need to mention packagename.classname. Also, the .class extension after the classname does not have to be mentioned.

Make the changes according to the above solution and try to execute the command once again.

answered Jul 26, 2019 by Jimmy

Related Questions In Apache Spark

0 votes
1 answer

Spark2-submit does not generate output file.

To generate the output file, you can ...READ MORE

answered Feb 23, 2019 in Apache Spark by Esha
1,912 views
0 votes
1 answer

How to create a not null column in case class in spark

Hi@Deepak, In your test class you passed empid ...READ MORE

answered May 14 in Apache Spark by MD
• 43,500 points
203 views
0 votes
1 answer

Why does sortBy transformation trigger a Spark job?

Actually, sortBy/sortByKey depends on RangePartitioner (JVM). So ...READ MORE

answered May 8, 2018 in Apache Spark by kurt_cobain
• 9,310 points
349 views
+1 vote
2 answers
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
5,530 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,920 points
818 views
+1 vote
11 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyF ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
34,318 views
0 votes
1 answer
+1 vote
1 answer

How can I write a text file in HDFS not from an RDD, in Spark program?

Yes, you can go ahead and write ...READ MORE

answered May 29, 2018 in Apache Spark by Shubham
• 13,380 points
3,643 views