java.nio.file.NoSuchFileException: /tmp/spark2

问题描述/异常栈

Problem accessing /history/application_1644422837924_14892/1/jobs/. Reason:

    Server Error
Caused by:
java.nio.file.NoSuchFileException: /tmp/spark2/historyStore/temp/appstore6691672694278980193
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
    at java.nio.file.Files.createDirectory(Files.java:674)
    at java.nio.file.TempFileHelper.create(TempFileHelper.java:136)
    at java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173)
    at java.nio.file.Files.createTempDirectory(Files.java:950)

解决方案

手工删除本地缓存目录并重启sparkhistory服务即可

问题原因

sparkhistory本地缓存目录异常,手工删除本地缓存目录并重启sparkhistory服务即可