You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by bupt_ljy <bu...@163.com> on 2018/09/06 15:01:12 UTC
Cannot set classpath which can be used before job is submitted to yarn.
Hi,all
I’m using “bin/flink run -m yarn-cluster” to run my program on yarn. However, it seems that I can’t add my own files into classpath before the the job is submitted to yarn. For example, I have a conf file, which located in my own conf directory, and I need to load file from the conf directory to initialize some classes instances before it’s submitted to yarn.
I’m grateful if anyone can give me some help.
Thanks.
Re: Cannot set classpath which can be used before job is submitted to yarn.
Posted by Hequn Cheng <ch...@gmail.com>.
Hi bupt,
No sure about the answer.
Do you mean that you can't read the file from local FS? Have you ever tried
load the file through a full path? or you choose a wrong classloader.
Best, Hequn
On Thu, Sep 6, 2018 at 11:01 PM bupt_ljy <bu...@163.com> wrote:
> Hi,all
>
> I’m using “bin/flink run -m yarn-cluster” to run my program on yarn.
> However, it seems that I can’t add my own files into classpath before the
> the job is submitted to yarn. For example, I have a conf file, which
> located in my own conf directory, and I need to load file from the conf
> directory to initialize some classes instances before it’s submitted to
> yarn.
>
> I’m grateful if anyone can give me some help.
>
> Thanks.
>