You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bigtop.apache.org by "Konstantin Boudnik (JIRA)" <ji...@apache.org> on 2016/09/14 17:33:20 UTC

[jira] [Commented] (BIGTOP-2534) Flume tests fail with java.lang.NoClassDefFoundError: org/apache/commons/io/Charsets

    [ https://issues.apache.org/jira/browse/BIGTOP-2534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15491000#comment-15491000 ] 

Konstantin Boudnik commented on BIGTOP-2534:
--------------------------------------------

Dunno where Flume is now nowadays and if any new releases are available, but ideally I'd prefer to fix this upstream.

> 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)