You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "&res (Jira)" <ji...@apache.org> on 2020/02/26 10:19:00 UTC
[jira] [Commented] (FLINK-15085) HistoryServer dashboard config
json out of sync
[ https://issues.apache.org/jira/browse/FLINK-15085?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17045342#comment-17045342 ]
&res commented on FLINK-15085:
------------------------------
If anyone is stuck with a broken version of the history server, there's a possible hot fix.
You have to modify config.json (which should be in historyserver.web.tmpdir) and add "features":{"web-submit":true} to it:
{code}
sed -i 's/"}$/","features":\{"web-submit":true}}/g' config.json
{code}
This has to be done AFTER the history server has started.
> HistoryServer dashboard config json out of sync
> -----------------------------------------------
>
> Key: FLINK-15085
> URL: https://issues.apache.org/jira/browse/FLINK-15085
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Web Frontend
> Affects Versions: 1.10.0
> Reporter: chaganti spurthi
> Assignee: Chesnay Schepler
> Priority: Blocker
> Labels: pull-request-available
> Fix For: 1.10.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> History server has javascript errors while loading the overview page, because the web-submit feature not found in the config.
> {code:java}
> main.9c4be059472ea41d7052.js:1 ERROR TypeError: Cannot read property 'web-submit' of undefined
> at new t (main.9c4be059472ea41d7052.js:1)
> at qr (main.9c4be059472ea41d7052.js:1)
> at Gr (main.9c4be059472ea41d7052.js:1)
> at ko (main.9c4be059472ea41d7052.js:1)
> at Oo (main.9c4be059472ea41d7052.js:1)
> at Object.Bo [as createRootView] (main.9c4be059472ea41d7052.js:1)
> at e.create (main.9c4be059472ea41d7052.js:1)
> at e.create (main.9c4be059472ea41d7052.js:1)
> at t.bootstrap (main.9c4be059472ea41d7052.js:1)
> at main.9c4be059472ea41d7052.js:1
> {code}
> It seems to be coming since FLINK-13818: [https://github.com/apache/flink/pull/9883]
> The issue is that for history server we are not setting the web-submit feature in the conf and the /config endpoint returns
> {code:java}
> {"refresh-interval":10000,"timezone-offset":-18000000,"timezone-name":"Eastern Time","flink-version":"<unknown>","flink-revision":"d9f8abb @ 04.12.2019 @ 16:16:24 EST"}{code}
> while as in the Jobmanager the /config endpoint returns
> {code:java}
> {"refresh-interval":3000,"timezone-name":"Coordinated Universal Time","timezone-offset":0,"flink-version":"1.9-criteo-rc1-1573156762","flink-revision":"366237a @ 07.11.2019 @ 20:00:32 UTC","features":{"web-submit":true}}
> {code}
> *AppComponent.ts* fails at this line because the feature web-submit is not found in the config:
> {code:java}
> webSubmitEnabled = this.statusService.configuration.features['web-submit'];
> {code}
> This can be fixed in two ways:
> # Add defensive check in the *AppComponent.ts*
> {code:java}
> webSubmitEnabled =
> (this.statusService.configuration &&
> this.statusService.configuration.features &&
> this.statusService.configuration.features['web-submit']);{code}
> # Add the features property in the config file that *HistoryServer.java* generates.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)