I am writting a Spark-shell script and for some reason I have been told to not provide the code in a jar form rather than just a plain spark scala shell script.
My application would focuses on reading kafka streams to spark. But since Kafka stream is not part of the spark, I would need to supply the kafka stream dependency jar while submitting to spark-submit.
I have written the Spark script in IntellijIDEA IDE. I am also having some other dependencies which are visible under the "external Libraries" section of the IDE.
Now how can I create a single dependency jar out of the "external libraries" so that I can supply it while submitting my spark script?