Flink出现Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created问题

解决问题 Provider for class javax.xml.parsers.DocumentBuilderFactory cannot be created

问题原因

xml-apis冲突问题


解决办法

去除xml-apis依赖

1
2
3
4
5
6
7
8
9
10
11
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-client</artifactId>
<version>${hadoop.version}</version>
<exclusions>
<exclusion>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</exclusion>
</exclusions>
</dependency>