spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Application not found in Spark historyserver in yarn-client mode
Date Wed, 14 Oct 2015 23:30:41 GMT
Which Spark release are you using ?

Thanks

On Wed, Oct 14, 2015 at 4:20 PM, Anfernee Xu <anfernee.xu@gmail.com> wrote:

> Hi,
>
> 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")
>         .setJars(new String[]{IOUtil.getJar(MySparkApp.class)});
>
>     conf.set("spark.yarn.historyServer.address", "10.247.44.155:18080");
>     conf.set("spark.history.fs.logDirectory",
>         "
> hdfs://myHdfsNameNode:55310/scratch/tie/spark/applicationHistory");
>
>     JavaSparkContext sc = new JavaSparkContext(conf);
>
>     try {
>
>      ... my application code
>
>     }finally{
>       sc.stop();
>
>     }
>
> --
> --Anfernee
>

Mime
View raw message