flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timo Walther <twal...@apache.org>
Subject Re: Read configuration instead of hard code
Date Thu, 13 Jul 2017 11:51:56 GMT
Hi Desheng,

Flink programs are defined in a regular Java main() method. They are 
executed on the Flink Client (usually the JobManeger) when submitted, 
you can add arbirary additional logic (like reading a file from an NFS) 
to the code. After retrieving the Kafka Info you can pass it to the 
Flink connector constructor.


Am 13.07.17 um 13:43 schrieb ZalaCheung:
> Hi all,
> I use Kafka as the source of my data stream. Instead of specifying the 
> host and topic of Kafka directly in code, is that possible to read the 
> configuration including Kakfa info from somewhere else like file or 
> database?
>  Desheng Zhang
> E-mail: gzzhangdesheng@corp.netease.com 
> <mailto:gzzhangdesheng@corp.netease.com>;

View raw message