简体   繁体   English

如何通过 web ui 提交作业以在纱线上进行 flink

[英]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.我在yarn上设置了一个flink集群,并通过主机上相关的类型命令成功提交作业。

but it is not so convenient as web ui(i have tested to submit job by web ui on fink standlone cluster).但它不如 web ui 方便(我已经测试过在 fink 独立集群上通过 web ui 提交作业)。

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.我点击“这里”超链接,它跳转到一个页面,在集群中带有一个随机主机 ip 和“随机”端口。 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:我尝试调试js代码,看看是不是某个配置触发了这个问题,找到了两个代码片段:

在此处输入图片说明

在此处输入图片说明

It seems like this page must not function well with flink on yarn.似乎这个页面在纱线上使用 flink 不能很好地运行。

So, can i submit job to flink on yarn by web ui?那么,我可以通过 web ui 提交工作以在纱线上进行 flink 吗? and how?如何?

As the message states YARN proxy, which you are seeing does not allow file uploads. 消息显示YARN代理,您所看到的不允许文件上传。 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). 如果您真的想通过web-ui在yarn上上传作业,则可以找到jobmanager的真实ip,然后直接转到该ip(无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. Flink on yarn 有两种模式:session 和 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如果需要通过web-ui提交,必须先创建yarn-session并进入session web-ui提交,但是per-job不应该通过web-ui提交

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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