Follow the following steps to run application on cluster-
spark-submit --master yarn\
--deploy-mode client\
--conf spark.ui.port = 12890\
--class retail_db_df.GetRevenuePerOrderDF\
spark2demo_2.11-0.1.jar yarn-client retail_db_json/order_items user/itversity/GetRevenuePerOrderDf