Local Flink config running standalone from IDE

前端 未结 3 1964
温柔的废话
温柔的废话 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:38

    To create a StreamExecutionEnvironment with configuration options, use this call StreamExecutionEnvironment.createLocalEnvironment(int parallelism, Configuration configuration)

    0 讨论(0)
  • 2021-01-12 03:44

    I could load the flink-conf.yaml file by providing the ENV_VAR FLINK_CONF_DIR in IntelliJ Run Configuration

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题