Created 09-20-2020 07:13 AM
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.spark.deploy.history.HistoryServer$.main(HistoryServer.scala:294)
at org.apache.spark.deploy.history.HistoryServer.main(HistoryServer.scala)
Caused by: java.io.FileNotFoundException: Log directory specified does not exist: hdfs://nameservice1/user/spark/applicationHistory
at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:268)
at org.apache.spark.deploy.history.FsHistoryProvider.initialize(FsHistoryProvider.scala:212)
at org.apache.spark.deploy.history.FsHistoryProvider.<init>(FsHistoryProvider.scala:208)
at org.apache.spark.deploy.history.FsHistoryProvider.<init>(FsHistoryProvider.scala:87)
... 6 more
Caused by: java.io.FileNotFoundException: File does not exist: hdfs://nameservice1/user/spark/applicationHistory
at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1735)
at org.apache.hadoop.hdfs.DistributedFileSystem$29.doCall(DistributedFileSystem.java:1728)
at org.apache.hadoop.fs.FileSystemLinkResolver.resolve(FileSystemLinkResolver.java:81)
at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1743)
at org.apache.spark.deploy.history.FsHistoryProvider.org$apache$spark$deploy$history$FsHistoryProvider$$startPolling(FsHistoryProvider.scala:258)
... 9 more
Created 09-21-2020 01:33 AM
@vijaypabothu You can resolve this using below steps. This seems somehow the directory is not exists which is causing the issue.
# 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 > Spark > Instances > (select Spark History Server) > Actions > Restart
Created 09-21-2020 01:33 AM
@vijaypabothu You can resolve this using below steps. This seems somehow the directory is not exists which is causing the issue.
# 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 > Spark > Instances > (select Spark History Server) > Actions > Restart
Created 09-23-2020 06:39 AM
Thanks a lot @GangWar !! Its working.