My Oracle Support Banner

Spark on Yarn History Server Going into Bad Health in Cloudera Manager with Logs Showing "Exception encountered when attempting to load application log" (Doc ID 2275705.1)

Last updated on FEBRUARY 07, 2022

Applies to:

Big Data Appliance Integrated Software - Version 4.5.0 and later
Linux x86-64


The Spark on yarn History Server goes into bad health in Cloudera Manager. It is running out of heap memory. This can happen after upgrade.

Perform all steps on the Spark on yarn History Server host, which is Node 3 by default, as 'root' user unless specified otherwise.

Additional symptoms are:

1. Increasing the heap memory for Spark on yarn History Server does not resolve the issue.

2. The Spark History Server log file /var/log/spark-history-server-<HOSTNAME3>.<DOMAIN>.log, shows output indicating an exception loading the application log.

2017-06-10 16:45:00,997 ERROR org.apache.spark.deploy.history.FsHistoryProvider: Exception encountered when attempting to load application log hdfs://<CLUSTER_NAME>-ns/user/spark/applicationHistory/application_<ID> Filesystem closed
at org.apache.hadoop.hdfs.DFSClient.checkOpen(
at org.apache.hadoop.hdfs.DFSClient.getFileInfo(
at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(
at org.apache.hadoop.hdfs.DistributedFileSystem$19.doCall(
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(
at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(
at org.apache.hadoop.fs.FileSystem.exists(
at org.apache.spark.scheduler.EventLoggingListener$.openEventLog(EventLoggingListener.scala:313)

3. The CM agent log on the Spark on yarn History Server host, /var/log/cloudera-scm-agent/cloudera-scm-agent.log, shows an
exception like:

[10/Jun/2017 02:45:24 +0000] 22104 MainThread agent ERROR Caught unexpected exception in main loop.

4. Checking the event logs in the HDFS folder, /user/spark/applicationHistory, on the Spark on yarn History Server host, shows information like the following.  The Spark on yarn History Server is on Node 3 by default.

Check the Spark on yarn History Server event logs with:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.