datavane / datasophon

The next generation of cloud-native big data management expert , Aims to help users rapidly build stable, efficient, and scalable cloud-native platforms for big data.
https://datasophon.github.io/datasophon-website/
Apache License 2.0
1.11k stars 387 forks source link

[Bug] flink configuration did not actually take effect #265

Closed chenxu8989 closed 1 year ago

chenxu8989 commented 1 year ago

Search before asking

What happened

在安装完flink之后flink的一些关键配置虽然在界面上有所体现但是在配置文件 flink-conf.yaml 中依然是空值

譬如,图形界面中自动生成的默认配置如下

high-availability: zookeeper
high-availability.storageDir: hdfs://nameservice1/flink/ha/
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.path.root: /flink
high-availability.zookeeper.client.acl: open

但是在flink启动后实际生成的配置文件如下

high-availability:
high-availability.storageDir:
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.client.acl:
high-availability.zookeeper.path.root:

只有 high-availability.zookeeper.quorum 这个选项是被正确的写入文件当中 其他配置全是空的

在界面上虽然配置正确但是文件中全部是空的

如果我把上面的配置写到 custom.flink.conf.yaml 中 flink-conf.yaml 文件会变成下面这样

high-availability:
high-availability.storageDir:
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.client.acl:
high-availability.zookeeper.path.root:
high-availability: zookeeper
high-availability.storageDir: hdfs://nameservice1/flink/ha/
high-availability.zookeeper.path.root: /flink

未正确赋值的配置会被保留, 然后会和已存在的配置选项发生重复, 留空的依然留空, 我不知道这算不算的上是bug, 但是看起来这种处理方式很奇怪

What you expected to happen

flink 配置未实际生效

How to reproduce

flink 配置未实际生效

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 1 year ago

Search before asking

What happened

After installing flink, although some key configurations of flink are reflected on the interface, they are still empty in the configuration file flink-conf.yaml

For example, the default configuration automatically generated in the graphical interface is as follows

high-availability: zookeeper
high-availability.storageDir: hdfs://nameservice1/flink/ha/
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.path.root: /flink
high-availability.zookeeper.client.acl: open

But the configuration file actually generated after flink starts is as follows

high-availability:
high-availability.storageDir:
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.client.acl:
high-availability.zookeeper.path.root:

Only the high-availability.zookeeper.quorum option is correctly written into the file All other configurations are empty

Although the configuration is correct on the interface, all files are empty

If I write the above configuration into custom.flink.conf.yaml, the flink-conf.yaml file will become as follows

high-availability:
high-availability.storageDir:
high-availability.zookeeper.quorum: ds-1:2181,ds-2:2181,ds-3:2181
high-availability.zookeeper.client.acl:
high-availability.zookeeper.path.root:
high-availability: zookeeper
high-availability.storageDir: hdfs://nameservice1/flink/ha/
high-availability.zookeeper.path.root: /flink

Configurations that are not correctly assigned will be retained, and then will be duplicated with existing configuration options, and those that are left blank will remain blank. I don't know if this counts as a bug, but it seems to be handled in a weird way

What you expected to happen

The flink configuration does not actually take effect

How to reproduce

The flink configuration does not actually take effect

Anything else

No response

Version

dev

Are you willing to submit PR?

Code of Conduct

github-actions[bot] commented 1 year ago

Thank you for your feedback, we have received your issue, Please wait patiently for a reply.

datasophon commented 1 year ago

Thank you for your feedback. The community will reproduce the issue to determine if it is a version defect