Flink 包冲突引起的报错

java.lang.ClassCastException: org.codehaus.janino.CompilerFactory cannot be cast to org.codehaus.com

 

解决方法:以下三个包加上 provided,不要打包进Jar.然后在Flink服务器的Lib文件夹里手动把这些Jar包放进去

        
			org.apache.flink
			flink-table-planner_${scala.binary.version}
			${flink.version}
			provided
		
        
			org.apache.flink
			flink-table-planner-blink_${scala.binary.version}
			${flink.version}
			provided
		
        
			org.apache.flink
			flink-table-planner_${scala.binary.version}
			${flink.version}
			provided
		

 

你可能感兴趣的:(Flink 包冲突引起的报错)