Here's the problem I'm facing, I have a standalone java application which is periodically submit Spark jobs to my yarn cluster, btw I'm not using 'spark-submit' or 'org.apache.spark.launcher' to submit my jobs. These jobs are successful and I can see them on Yarn RM webUI, but when I want to follow the link to the app history, I always got 404(application is not found) from Spark historyserver.
My code looks likes as below
SparkConf conf = new SparkConf().setAppName("testSpak").setMaster("yarn-client")
JavaSparkContext sc = new JavaSparkContext(conf);
... my application code