开发者社区 > 大数据与机器学习 > 实时计算 Flink > 正文

Flink CDC里提交任务异常是为什么?

Flink CDC里提交任务异常是为什么?Exception in thread "main" java.lang.IllegalStateException: Failed to load config file "/Users/lijianqiang/Desktop/workfile/soft/flinkcdc3.0/flink-cdc-3.0.0/bin/../conf/flink-cdc.yaml" to key-value pairs
at com.ververica.cdc.cli.utils.ConfigurationUtils.loadMapFormattedConfig(ConfigurationUtils.java:45)
at com.ververica.cdc.cli.CliFrontend.getGlobalConfig(CliFrontend.java:145)
at com.ververica.cdc.cli.CliFrontend.createExecutor(CliFrontend.java:85)
at com.ververica.cdc.cli.CliFrontend.main(CliFrontend.java:62)
Caused by: org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.lang.String from Object value (token JsonToken.START_OBJECT)
at [Source: (File); line: 19, column: 3] (through reference chain: java.util.LinkedHashMap["source"])
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.exc.MismatchedInputException.from(MismatchedInputException.java:59)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.DeserializationContext.reportInputMismatch(DeserializationContext.java:1746)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1520)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1425)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.DeserializationContext.extractScalarFromObject(DeserializationContext.java:937)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseString(StdDeserializer.java:1421)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:48)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringKeyMap(MapDeserializer.java:623)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:449)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:32)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4730)
at org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3562)
at com.ververica.cdc.cli.utils.ConfigurationUtils.loadMapFormattedConfig(ConfigurationUtils.java:40)
... 3 more

展开
收起
小小鹿鹿鹿 2024-02-01 17:25:06 69 0
1 条回答
写回答
取消 提交回答
  • conf/flink-cdc.yaml" 这个文件是被你改了吧,提交任务的yaml是单独的,这个是不需要修改的。此回答来自钉群Flink CDC 社区。

    2024-02-01 18:24:06
    赞同 展开评论 打赏

实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。

相关产品

  • 实时计算 Flink版
  • 相关电子书

    更多
    Flink CDC Meetup PPT - 龚中强 立即下载
    Flink CDC Meetup PPT - 王赫 立即下载
    Flink CDC Meetup PPT - 覃立辉 立即下载