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
1,670 views

1 answer to this question.

–1 vote

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 24, 2019 in Apache Spark by Esha
4,877 views
0 votes
1 answer
+2 votes
2 answers
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, 2020 in Apache Spark by MD
• 95,460 points
5,115 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,350 points
1,935 views
+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,490 points
8,494 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
• 11,380 points
11,077 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
• 11,380 points
2,574 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,071 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP