title: How to run spark-jobs outside the bin folder of spark-2.1.1-bin-hadoop2.7
body: <p>I have an existing <code>spark-job</code>, the functionality of this <code>spark-job</code> is to connect <code>kafka-server</code> get the data and then storing the data into <code>cassandra tables</code>, now this <code>spark-job</code> is running on server inside <code>spark-2.1.1-bin-hadoop2.7/bin</code> but whenever I am trying to run this <code>spark-job</code> from other location, Its not running, this <code>spark-job</code> contains some JavaRDD related code.
  Is there any chance, I can run this <code>spark-job</code> from outside also by adding any dependency in pom or something else?</p>