Hi Stephan,

I just came across the same problem in accessing the constants and in 
particular setting custom properties.
In particular I noticed that the Minicluster started in the Local Environment 
cannot easily be customized as it does not take into account any custom 
environment variables - no way to pass them.
I tried to fix that locally and suggested a pull request - does that make sense?
https://github.com/apache/flink/pull/448


Johannes

-----Ursprüngliche Nachricht-----
Von: ewenstep...@gmail.com [mailto:ewenstep...@gmail.com] Im Auftrag von 
Stephan Ewen
Gesendet: Dienstag, 3. März 2015 10:03
An: dev@flink.apache.org
Betreff: Re: Access flink-conf.yaml data

Hey Dulaj!

As Chiwan said, the GlobalConfiguration object is used to load them initially.

You can always use that to access the values (it works as a singleton
internally) - but we are starting to move away from singletons, as they make 
test setups and embedding more difficult.
In the JobManager and TaskManager setup, we pass a Configuration object around, 
which has all the values from the global configuration.

Stephan



On Tue, Mar 3, 2015 at 6:08 AM, Chiwan Park <chiwanp...@icloud.com> wrote:

> I think that you can use
> `org.apache.flink.configuration.GlobalConfiguration` to obtain 
> configuration object.
>
> Regards.
> Chiwan Park (Sent with iPhone)
>
>
> > On Mar 3, 2015, at 12:17 PM, Dulaj Viduranga <vidura...@icloud.com>
> wrote:
> >
> > Hi,
> > Can someone help me on how to access the flink-conf.yaml 
> > configuration
> values inside the flink sources? Are these readily available as a map 
> somewhere?
> >
> > Thanks.
>
>

Reply via email to