简体   繁体   中英

How to submit Job to flink on yarn by web ui

I setup a flink cluster on yarn, and submit job by type commands related on hosts successfully.

but it is not so convenient as web ui(i have tested to submit job by web ui on fink standlone cluster).

when i click "Submit new Job" buttons , the page is as follow:

在此处输入图片说明

I click "here" hyperlink, it jumped to a page with a random host ip in cluster and "random" port. as we do not open all port to public network, so this page is connection refused.

在此处输入图片说明

I try to debug js code to find whether some config trigger this problem, and find two code fragments:

在此处输入图片说明

在此处输入图片说明

It seems like this page must not function well with flink on yarn.

So, can i submit job to flink on yarn by web ui? and how?

As the message states YARN proxy, which you are seeing does not allow file uploads. If you really wanna upload jobs via web-ui on yarn, you can find out the real ip of the jobmanager and go to that ip directly(without yarn proxy).

There are some issues though with the approach. You have to have access to that node, which is usually not the case on yarn. (Which most probably you are hitting).

Flink on yarn has two modes: session and per-job. If you need to submit via web-ui, you must first create a yarn-session and enter session web-ui to submit, but per-job should not be submitted via web-ui Submitted

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM