【记录】flink任务发布到yarn上报错java.lang.NoClassDefFoundError: org/apache/htrace/Trace
问题如题
解决1、项目引入依赖
<dependency> <groupId>org.apache.htrace</groupId> <artifactId>htrace-core</artifactId> <version>3.1.0-incubating</version> </dependency> <dependency> <groupId>org.apache.htrace</groupId> <artifactId>htrace-core4</artifactId> <version>4.0.1-incubating</version> </dependency> <dependency> <groupId>org.cloudera.htrace</groupId> <artifactId>htrace-core</artifactId> <version>2.04</version> </dependency>
解决2、把htrace-core-3.1.0-incubating.jar放到flink的lib目录下