Getting Exception org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.l

把下面的依赖去掉即可!

log4j-to-slf4j-2.0.2.jar
log4j-to-slf4j-2.0.2-sources.jar
log4j-slf4j-impl-2.0.2.jar
log4j-slf4j-impl-2.0.2-sources.jar

flink里面好像有一个是有冲突的,下面是我去掉依赖之后的图

<dependency>
		<groupId>org.apache.flinkgroupId>
		<artifactId>flink-connector-elasticsearch6_2.11artifactId>
		<version>${flink.version}version>
		<exclusions>
			<exclusion>
				<groupId>org.slf4jgroupId>
				<artifactId>slf4j-apiartifactId>
			exclusion>
			<exclusion>
				<groupId>org.apache.logging.log4jgroupId>
				<artifactId>log4j-to-slf4jartifactId>
			exclusion>
		exclusions>
dependency>

Getting Exception org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.l_第1张图片
谢谢观看!

你可能感兴趣的:(flink,Java)