I\'m trying to run a custom HDFS reader class in PySpark. This class is written in Java and I need to access it from PySpark, either from the shell or with spark-submit.
Rather than --jars you should use --packages to import packages into your spark-submit action.
--jars
--packages
spark-submit