<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Please advise -Getting the below error for spark history server in CDP7.1.3 cluster setup - java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303085#M221388</link>
    <description>&lt;P&gt;Exception in thread "main" java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at org.apache.spark.deploy.history.HistoryServer$.main(HistoryServer.scala:294)&lt;BR /&gt;at org.apache.spark.deploy.history.HistoryServer.main(HistoryServer.scala)&lt;BR /&gt;Caused by: java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:268)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.initialize(FsHistoryProvider.scala:212)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.&amp;lt;init&amp;gt;(FsHistoryProvider.scala:208)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.&amp;lt;init&amp;gt;(FsHistoryProvider.scala:87)&lt;BR /&gt;... 6 more&lt;BR /&gt;Caused by: java.io.FileNotFoundException: File does not exist: hdfs://nameservice1/user/spark/applicationHistory&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1735)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1728)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1743)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:258)&lt;BR /&gt;... 9 more&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 11:25:37 GMT</pubDate>
    <dc:creator>vijaypabothu</dc:creator>
    <dc:date>2026-04-21T11:25:37Z</dc:date>
    <item>
      <title>Please advise -Getting the below error for spark history server in CDP7.1.3 cluster setup - java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303085#M221388</link>
      <description>&lt;P&gt;Exception in thread "main" java.lang.reflect.InvocationTargetException&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;BR /&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:423)&lt;BR /&gt;at org.apache.spark.deploy.history.HistoryServer$.main(HistoryServer.scala:294)&lt;BR /&gt;at org.apache.spark.deploy.history.HistoryServer.main(HistoryServer.scala)&lt;BR /&gt;Caused by: java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:268)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.initialize(FsHistoryProvider.scala:212)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.&amp;lt;init&amp;gt;(FsHistoryProvider.scala:208)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.&amp;lt;init&amp;gt;(FsHistoryProvider.scala:87)&lt;BR /&gt;... 6 more&lt;BR /&gt;Caused by: java.io.FileNotFoundException: File does not exist: hdfs://nameservice1/user/spark/applicationHistory&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1735)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1728)&lt;BR /&gt;at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)&lt;BR /&gt;at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1743)&lt;BR /&gt;at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:258)&lt;BR /&gt;... 9 more&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 11:25:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303085#M221388</guid>
      <dc:creator>vijaypabothu</dc:creator>
      <dc:date>2026-04-21T11:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Please advise -Getting the below error for spark history server in CDP7.1.3 cluster setup - java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303110#M221398</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/81574"&gt;@vijaypabothu&lt;/a&gt;&amp;nbsp;You can resolve this using below steps. This seems somehow the directory is not exists which is causing the issue.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# hdfs dfs -mkdir -p /user/spark/applicationHistory
// make sure it is owned by spark user/group
# hdfs dfs -chown -R spark:spark /user/spark/
// set 777 access rights and sticky bit
# hdfs dfs -chmod 1777 /user/spark/applicationHistory
// restart the SHS process to test. CM &amp;gt; Spark &amp;gt; Instances &amp;gt; (select Spark History Server) &amp;gt; Actions &amp;gt; Restart&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 08:33:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303110#M221398</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2020-09-21T08:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Please advise -Getting the below error for spark history server in CDP7.1.3 cluster setup - java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303272#M221468</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp;!! Its working.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 13:39:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Please-advise-Getting-the-below-error-for-spark-history/m-p/303272#M221468</guid>
      <dc:creator>vijaypabothu</dc:creator>
      <dc:date>2020-09-23T13:39:14Z</dc:date>
    </item>
  </channel>
</rss>

