[
https://issues.apache.org/jira/browse/FLINK-22469?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gyula Fora resolved FLINK-22469.
--------------------------------
Resolution: Fixed
Merged to master: fa19ba2acbe878b0c454f1ad93d0c412ab6ed380
> HistoryServer starts with NoSuchFileException
> ---------------------------------------------
>
> Key: FLINK-22469
> URL: https://issues.apache.org/jira/browse/FLINK-22469
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Web Frontend
> Affects Versions: 1.12.2, 1.14.0
> Reporter: Gabor Somogyi
> Assignee: Gabor Somogyi
> Priority: Minor
> Labels: pull-request-available
>
> When history server started initially it throws the following exception:
> {code:java}
> 2021-04-23 23:25:17,487 ERROR
> org.apache.flink.runtime.webmonitor.history.HistoryServerArchiveFetcher [] -
> Failed to update job overview.
> java.nio.file.NoSuchFileException:
> /var/folders/jd/35_sh46s7zq0qc6khfw8hc800000gn/T/flink-web-history-35a77053-0e52-4cb3-8d22-626e3ce3cbd7/jobs/overview.json
> at
> sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
> ~[?:1.8.0_282]
> at
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
> ~[?:1.8.0_282]
> at
> sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
> ~[?:1.8.0_282]
> at
> sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:214)
> ~[?:1.8.0_282]
> at java.nio.file.Files.newByteChannel(Files.java:361) ~[?:1.8.0_282]
> at java.nio.file.Files.createFile(Files.java:632) ~[?:1.8.0_282]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer.createOrGetFile(HistoryServer.java:324)
> ~[flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServerArchiveFetcher.updateJobOverview(HistoryServerArchiveFetcher.java:464)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServerArchiveFetcher.access$000(HistoryServerArchiveFetcher.java:74)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServerArchiveFetcher$JobArchiveFetcherTask.<init>(HistoryServerArchiveFetcher.java:199)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServerArchiveFetcher.<init>(HistoryServerArchiveFetcher.java:124)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer.<init>(HistoryServer.java:230)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer.<init>(HistoryServer.java:146)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer$1.call(HistoryServer.java:130)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer$1.call(HistoryServer.java:127)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.security.contexts.NoOpSecurityContext.runSecured(NoOpSecurityContext.java:28)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> at
> org.apache.flink.runtime.webmonitor.history.HistoryServer.main(HistoryServer.java:126)
> [flink-dist_2.11-1.14-SNAPSHOT.jar:1.14-SNAPSHOT]
> {code}
> The issue is that "webDir" not yet created by "HistoryServer" when
> "HistoryServerArchiveFetcher" tries to reach "jobs/overview.json" file in it.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)