How to run Spark job on a CDH

To run a Spark job on a CDH (Cloudera Distribution of Hadoop) cluster, you have a few options, depending on your use case and preferences…