Local Flink config running standalone from IDE

前端 未结 3 1965
温柔的废话
温柔的废话 2021-01-12 02:59

If I\'d like to run a Flink app locally, directly from within Intellij but I need to specify config params (like fs.hdfs.hdfssite to set up S3 access), is there any other wa

3条回答
  •  臣服心动
    2021-01-12 03:44

    You can use StreamExecutionEnvironment.getExecutionEnvironment() -- it will figure out the current setting and if executed in an IDE will return an "LocalEnvironemnt".

    Thus, should be able to use conf/flink-conf.yaml to set your configuration values.

提交回复
热议问题