[
https://issues.apache.org/jira/browse/FLINK-11244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16731824#comment-16731824
]
shuiqiangchen commented on FLINK-11244:
---------------------------------------
Hi Kaicheng, when launched flink on yarn, the flink dashboard web app is
deployed in yarn container, the rest.port user configured might no be
effective. But we still can use the monitoring rest api via yarn proxy
localhost:8088/proxy/application_1546414941095_0001+/rest/api
such as:
localhost:8088/proxy/application_1546414941095_0001/jobmanager/config ,
then the flink web app running in yarn container will return the coresponding
result in json format as:
[{"key":"web.port","value":"0"},{"key":"high-availability.cluster-id","value":"application_1546414941095_0001"},{"key":"jobmanager.rpc.address","value":"xx.xx.xx.xx"},{"key":"jobmanager.heap.mb","value":"256"},{"key":"taskmanager.network.memory.max","value":"268435456"},{"key":"web.tmpdir","value":"/var/folders/43/72s4sfkn40n9fmm4qwd96bqc0000gp/T/flink-web-1e5320fa-8ad1-4d39-a51c-75ffb7d7bf14"},{"key":"jobmanager.rpc.port","value":"49473"},{"key":"rest.port","value":"0"},{"key":"io.tmp.dirs","value":"/tmp/hadoop-user/nm-local-dir/usercache/user/appcache/application_1546414941095_0001"},{"key":"internal.cluster.execution-mode","value":"NORMAL"},{"key":"taskmanager.cpu.core","value":"2"},{"key":"parallelism.default","value":"1"},{"key":"flink.shuffle-service.port","value":"13572"},{"key":"taskmanager.numberOfTaskSlots","value":"3"},{"key":"rest.address","value":"xx.xx.xx.xx"},{"key":"taskmanager.heap.mb","value":"512"},{"key":"containerized.heap-cutoff-min","value":"480"}]
> flink web.port can not be configured correctly in yarn mode
> -----------------------------------------------------------
>
> Key: FLINK-11244
> URL: https://issues.apache.org/jira/browse/FLINK-11244
> Project: Flink
> Issue Type: Bug
> Components: Metrics, REST, YARN
> Affects Versions: 1.4.2
> Environment: ubuntu 16.04
> openjdk-8
> Hadoop 2.7.1.2.3.6.0-3796
> flink 1.4.0
> Reporter: Kaicheng Sun
> Priority: Major
> Labels: documentation
> Attachments: capture.PNG
>
>
> I want to get flink's metrics information via REST api, my flink is managed
> by YARN, but after changing web.port configuration in flink-conf.yaml, the
> change has no affect, and the web.port in the flink dashboard is always 0. So
> I can not get the flink metrics information via REST api.
>
>
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)