Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Support Questions

Find answers, ask questions, and share your expertise
Announcements
Share your experience with Cloudera on G2 and get a $25 Amazon Gift card.
Hi, I'm CLEO! Something exciting is coming to the Community. Stay Tuned!

Where is the Jar folder for Spark in Cloudera?

avatar
Contributor

Hi. I want to know Where is the Jar folder for Spark in Cloudera? In my previous company, we just put all the needed jars inside $SPARK_HOME/jar folder (on every node), so that we don't have to worry much about the --jars, --packages,... when running the spark-submit job. Also, it saves lots of disk space and time since we don't need to include every package when building a jar.

But in my new company, which uses Cloudera, I don't know where is this jar folder. I found 2 places (maybe not the right one):

- /opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/jars

quangbilly79_0-1671587752107.png

- /opt/cloudera/parcels/CDH-6.2.0-1.cdh6.2.0.p0.967373/lib/spark/jars

quangbilly79_1-1671587791988.png

Where should I put the needed jars file on? It seems like all the jars file on the second one are linked to the first one. Also, I found dozens of lib/jar folders everywhere in Cloudera.

Or is there any other way to do this with Cloudera? I read some guides about modified Spark configs on the Cloudera manager on the internet.

 

1 REPLY 1

avatar
Master Collaborator

@quangbilly79 It should be 

/opt/cloudera/parcels/SPARK2/lib/