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 叶贤勋 <yx...@163.com> on 2021/01/22 18:03:28 UTC
回复:请教关于Flink yarnship的使用
URL url = this.getClass().getClassLoader().getResource("conf”);
String dir = url.getFile();
dir目录下应该会包含ship的配置文件,你可以试下。
在2021年01月22日 15:38,Yan Tang<ya...@cisco.com.INVALID> 写道:
我把配置和jar包分开了,用-yt option将配置文件Ship到yarn cluster中,但是在获取配置文件的时候,老是拿不到,有人有相关经验么?
我的提交命令:
-yt /path/to/conf
code:
this.getClass().getResourceAsStream("conf/cmp_online.cfg")
但一直返回null.
--
Sent from: http://apache-flink.147419.n8.nabble.com/
Re: 回复:请教关于Flink yarnship的使用
Posted by Yan Tang <ya...@cisco.com.INVALID>.
我试过了,还是null
--
Sent from: http://apache-flink.147419.n8.nabble.com/