Git Product home page Git Product logo

Comments (2)

skymilong avatar skymilong commented on May 29, 2024

Steps to Reproduce

  1. Upgrade to Flink version 1.19 or later where full YAML 1.2 support is introduced.
  2. Attempt to run a Flink CDC job using the latest version of Flink CDC, which still references the flink-conf.yaml file.
  3. Using flink-cdc.sh script :
bin/flink-cdc.sh mysql2doris.yaml

exception:

Exception in thread "main" java.io.FileNotFoundException: Cannot find configuration file at "/opt/flink/conf/flink-conf.yaml"

Environment Information

  • Flink Version: 1.19.0
  • Flink CDC Version: flink-cdc-3.0.1

Suggested Solution

To enable Flink CDC to simultaneously support both new and old Flink configuration file standards, it is recommended to implement a simple logic check within the Flink CDC codebase to determine whether to use config.yaml or flink-conf.yaml. This can be achieved by utilizing the Files.exists method to check for the presence of the config.yaml file in the system. If it exists, Flink CDC should use config.yaml as the configuration file; if it does not, then it should fall back to using flink-conf.yaml. Such an implementation will ensure that Flink CDC can seamlessly transition between different versions of Flink while maintaining backward compatibility.

from flink-cdc.

PatrickRen avatar PatrickRen commented on May 29, 2024

If the issue still exists, please report it on Apache Jira under the project Flink, using the component tag Flink CDC. Thank you!

from flink-cdc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.