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 in Apache Spark by Rohit
55 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 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 in Apache Spark by Esha
871 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,280 points
172 views
0 votes
1 answer

How does partitioning work in Spark?

By default a partition is created for ...READ MORE

answered May 31, 2018 in Apache Spark by nitinrawat895
• 10,800 points
76 views
0 votes
1 answer

Does Spark provide the storage layer too?

No, it doesn’t provide storage layer but ...READ MORE

answered Sep 3, 2018 in Apache Spark by nitinrawat895
• 10,800 points
69 views
+1 vote
1 answer
0 votes
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,800 points
3,576 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,800 points
454 views
+1 vote
11 answers

hadoop fs -put command?

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

answered Dec 7, 2018 in Big Data Hadoop by Aditya
18,431 views
0 votes
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,350 points
1,765 views