How to I add jars to the lab

I need to add some dependent jars for streaming analytics. These are not present by default and I want to know how to do that

Hi @ankurhacked4473,

You can pass the external JARs using --jars option. Let’s say your JAR file is abc.jar and it is located in test directory inside your home directory then something like below command should work

spark-shell --jars /home/YOUR_USERNAME/test/abc.jar

Replace YOUR_USERNAME with your CloudxLab user name

Hope this helps.

Thanks

1 Like

How do I access the external jars using Jupyter… I am trying to access the Twitter jars for some program on spark streaming.

1 Like