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

Flink CDC遇到过这个问题吗?

Flink CDC遇到过这个问题吗?2023-12-29 11:21:52,322 ERROR org.apache.hadoop.conf.Configuration [] - Failed to set setXIncludeAware(true) for parser oracle.xml.jaxp.JXDocumentBuilderFactory@2e3dd81

java.lang.UnsupportedOperationException: setXIncludeAware is not supported on this JAXP implementation or earlier: class oracle.xml.jaxp.JXDocumentBuilderFactory

at javax.xml.parsers.DocumentBuilderFactory.setXIncludeAware(DocumentBuilderFactory.java:584) ~[?:1.8.0_212]

at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2728) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2706) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2579) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.conf.Configuration.get(Configuration.java:1091) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:1145) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1550) ~[flink-shaded-hadoop-2-uber-2.8.3-10.0.jar:2.8.3-10.0]

at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:66) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:80) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:94) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.query.ConfigurationFactory$ConfigurationFactoryImpl$1.call(ConfigurationFactory.java:49) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.query.ConfigurationFactory$ConfigurationFactoryImpl$1.call(ConfigurationFactory.java:46) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.util.PhoenixContextExecutor.call(PhoenixContextExecutor.java:76) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.util.PhoenixContextExecutor.callWithoutPropagation(PhoenixContextExecutor.java:91) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.query.ConfigurationFactory$ConfigurationFactoryImpl.getConfiguration(ConfigurationFactory.java:46) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.jdbc.PhoenixDriver.initializeConnectionCache(PhoenixDriver.java:151) ~[blob_p-dc6f9b824dec21dc53e5013ab21c3aa42e0bf30a-f23de6dc9e0bc110e1e1e678db79ee8d:?]

at org.apache.phoenix.jdb
加载更多

展开
收起
真的很搞笑 2024-01-01 09:01:16 164 0
2 条回答
写回答
取消 提交回答
  • 面对过去,不要迷离;面对未来,不必彷徨;活在今天,你只要把自己完全展示给别人看。

    这个问题是由于Oracle JDBC驱动程序不支持setXIncludeAware方法导致的。你可以尝试使用其他版本的Oracle JDBC驱动程序,或者在Flink CDC的配置中禁用setXIncludeAware方法。

    2024-01-01 13:03:44
    赞同 展开评论 打赏
  • 这个错误是由于Flink试图在一个不支持setXIncludeAware操作的JAXP实现上进行此操作。这可能是由于使用了Oracle的XML解析器,而这个解析器并不支持setXIncludeAware操作。

    解决这个问题的方法是在Flink配置中禁用XInclude。你可以在flink-conf.yaml文件中添加以下配置:

    execution.runtime-configuration.hadoop.xinclude-aware: false
    

    这样,Flink就不会尝试设置setXIncludeAware,从而避免了这个错误。

    2024-01-01 10:21:09
    赞同 展开评论 打赏

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

相关产品

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

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