Divya sree created BIGTOP-2534: ---------------------------------- Summary: Flume tests fail with java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets Key: BIGTOP-2534 URL: https://issues.apache.org/jira/browse/BIGTOP-2534 Project: Bigtop Issue Type: Test Components: build Environment: Ubuntu 14.04, jdk 1.7 Reporter: Divya sree Priority: Minor
I have removed –DskipTests option at bigtop/bigtop-packages/src/common/flume/do-compound-build and tried to run ./gradlew flume-deb. TestFlumeAuthenticator test case is failing in flume-ng-auth with below error : org.apache.flume.auth.TestFlumeAuthenticator Time elapsed: 7161 sec <<< ERROR! java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets at org.apache.hadoop.minikdc.MiniKdc.initKDCServer(MiniKdc.java:451) at org.apache.hadoop.minikdc.MiniKdc.start(MiniKdc.java:320) at org.apache.flume.auth.TestFlumeAuthenticator.startMiniKdc(TestFlumeAuthenticator.java:49) It is trying to execute "r = new BufferedReader(new InputStreamReader(is2, Charsets.UTF_8));" at line 451 in hadoop/hadoop-common-project/hadoop-minikdc/src/main/java/org/apache/hadoop/minikdc/MiniKdc.java of hadoop-2.7.2 version. It is failing because “org/apache/commons/io/Charsets.java” is available in common-io package > 2.3 version but it is downloading commons-io(2.1) version because of following dependency in flume-1.6.0/pom.xml <dependency> <groupId>commons-io</groupId> <artifactId>commons-io</artifactId> <version>2.1</version> </dependency> There are even other test cases that are failing with “java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets” error. Can we change the version of commons-io(2.4) in flume-1.6.0/pom.xml ? -- This message was sent by Atlassian JIRA (v6.3.4#6332)