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
加载更多
这个问题是由于Oracle JDBC驱动程序不支持setXIncludeAware方法导致的。你可以尝试使用其他版本的Oracle JDBC驱动程序,或者在Flink CDC的配置中禁用setXIncludeAware方法。
这个错误是由于Flink试图在一个不支持setXIncludeAware
操作的JAXP实现上进行此操作。这可能是由于使用了Oracle的XML解析器,而这个解析器并不支持setXIncludeAware
操作。
解决这个问题的方法是在Flink配置中禁用XInclude。你可以在flink-conf.yaml
文件中添加以下配置:
execution.runtime-configuration.hadoop.xinclude-aware: false
这样,Flink就不会尝试设置setXIncludeAware
,从而避免了这个错误。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。