You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-zh@flink.apache.org by Kaiqiang XIE谢开强 <kq...@163.com> on 2022/03/26 00:00:14 UTC

The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

各位好,再请教一个问题哈
mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.




这是什么问题呢?

Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by 胡伟华 <hu...@gmail.com>.
Hi, Kaiqiang

Flink run 的正确用法是[1], 通过-c 指定mainClass 需要放在 jar-file 之前。图中的报错是由于没有指定 main-class,同时在 manifest 中也找不到对应的配置,可以检查下最终 jar 包内容是否符合预期。

[1] flink run [OPTIONS] <jar-file> <arguments>



> 2022年3月26日 下午6:52,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
> 
> 同样的jar包 在webui 提交可以运行成功
> 但是用命令行就还是不行?
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 在 2022-03-26 17:01:36,"Kaiqiang XIE谢开强" <kq...@163.com> 写道:
> 
> 不好意思,yarn的问题搞定了。
> 还想再请教一下:我用scala写的程序,在idea中正常运行,打jar包后用flink run 运行。
> 为什么会报找不到主类入口呢?报错截图
> 附件是我的pom文件
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 在 2022-03-26 10:37:37,"Geng Biao" <bi...@gmail.com> 写道:
>> 放图的话,建议传到图床上,邮件里放链接。一般运行yarn top即可显示集群状态。
>> 
>> Best,
>> Biao
>> 
>> 获取 Outlook for iOS<https://aka.ms/o0ukef>
>> ________________________________
>> 发件人: Kaiqiang XIE谢开强 <kq...@163.com>
>> 发送时间: Saturday, March 26, 2022 10:33:40 AM
>> 收件人: user-zh@flink.apache.org <us...@flink.apache.org>
>> 主题: Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>> 
>> 
>> 
>> 
>> 
>> yarn这是正常的吧?
>> 
>> [cid:44f01b9d$1$17fc4121e18$Coremail$kqx0731$163.com]
>> 
>> 
>> 在 2022-03-26 09:22:11,"胡伟华" <hu...@gmail.com> 写道:
>>> 报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常
>>> 
>>>> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
>>>> 
>>>> 各位好,再请教一个问题哈
>>>> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>>>> 
>>>> 
>>>> 
>>>> 
>>>> 这是什么问题呢?
>> 
>> 
>> 
>> 
>> 
> 
> 
> 
> 
> 


Re:Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by Kaiqiang XIE谢开强 <kq...@163.com>.
同样的jar包 在webui 提交可以运行成功
但是用命令行就还是不行?
















在 2022-03-26 17:01:36,"Kaiqiang XIE谢开强" <kq...@163.com> 写道:

不好意思,yarn的问题搞定了。
还想再请教一下:我用scala写的程序,在idea中正常运行,打jar包后用flink run 运行。
为什么会报找不到主类入口呢?报错截图
附件是我的pom文件

















在 2022-03-26 10:37:37,"Geng Biao" <bi...@gmail.com> 写道:
>放图的话,建议传到图床上,邮件里放链接。一般运行yarn top即可显示集群状态。
>
>Best,
>Biao
>
>获取 Outlook for iOS<https://aka.ms/o0ukef>
>________________________________
>发件人: Kaiqiang XIE谢开强 <kq...@163.com>
>发送时间: Saturday, March 26, 2022 10:33:40 AM
>收件人: user-zh@flink.apache.org <us...@flink.apache.org>
>主题: Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>
>
>
>
>
>yarn这是正常的吧?
>
>[cid:44f01b9d$1$17fc4121e18$Coremail$kqx0731$163.com]
>
>
>在 2022-03-26 09:22:11,"胡伟华" <hu...@gmail.com> 写道:
>>报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常
>>
>>> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
>>>
>>> 各位好,再请教一个问题哈
>>> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>>>
>>>
>>>
>>>
>>> 这是什么问题呢?
>
>
>
>
>





 

Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by Kaiqiang XIE谢开强 <kq...@163.com>.
不好意思,yarn的问题搞定了。
还想再请教一下:我用scala写的程序,在idea中正常运行,打jar包后用flink run 运行。
为什么会报找不到主类入口呢?报错截图
附件是我的pom文件

















在 2022-03-26 10:37:37,"Geng Biao" <bi...@gmail.com> 写道:
>放图的话,建议传到图床上,邮件里放链接。一般运行yarn top即可显示集群状态。
>
>Best,
>Biao
>
>获取 Outlook for iOS<https://aka.ms/o0ukef>
>________________________________
>发件人: Kaiqiang XIE谢开强 <kq...@163.com>
>发送时间: Saturday, March 26, 2022 10:33:40 AM
>收件人: user-zh@flink.apache.org <us...@flink.apache.org>
>主题: Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>
>
>
>
>
>yarn这是正常的吧?
>
>[cid:44f01b9d$1$17fc4121e18$Coremail$kqx0731$163.com]
>
>
>在 2022-03-26 09:22:11,"胡伟华" <hu...@gmail.com> 写道:
>>报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常
>>
>>> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
>>>
>>> 各位好,再请教一个问题哈
>>> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>>>
>>>
>>>
>>>
>>> 这是什么问题呢?
>
>
>
>
>

Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by Geng Biao <bi...@gmail.com>.
放图的话,建议传到图床上,邮件里放链接。一般运行yarn top即可显示集群状态。

Best,
Biao

获取 Outlook for iOS<https://aka.ms/o0ukef>
________________________________
发件人: Kaiqiang XIE谢开强 <kq...@163.com>
发送时间: Saturday, March 26, 2022 10:33:40 AM
收件人: user-zh@flink.apache.org <us...@flink.apache.org>
主题: Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.





yarn这是正常的吧?

[cid:44f01b9d$1$17fc4121e18$Coremail$kqx0731$163.com]


在 2022-03-26 09:22:11,"胡伟华" <hu...@gmail.com> 写道:
>报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常
>
>> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
>>
>> 各位好,再请教一个问题哈
>> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>>
>>
>>
>>
>> 这是什么问题呢?






Re:Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by Kaiqiang XIE谢开强 <kq...@163.com>.








yarn这是正常的吧?





在 2022-03-26 09:22:11,"胡伟华" <hu...@gmail.com> 写道:
>报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常
>
>> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
>> 
>> 各位好,再请教一个问题哈
>> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
>> 
>> 
>> 
>> 
>> 这是什么问题呢?

Re: The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.

Posted by 胡伟华 <hu...@gmail.com>.
报错是 YARN 集群可用资源不足了,可以检查下 YARN 集群是否正常

> 2022年3月26日 上午8:00,Kaiqiang XIE谢开强 <kq...@163.com> 写道:
> 
> 各位好,再请教一个问题哈
> mac上部署flink standalone,在运行 bin/flink run -m yarn-cluster $FLINK_HOME/examples/streaming/SocketWindowWordCount.jar --port 8882之后提示The number of requested virtual cores for application master 1 exceeds the maximum number of virtual cores 0 available in the Yarn Cluster.
> 
> 
> 
> 
> 这是什么问题呢?