[
https://issues.apache.org/jira/browse/FLUME-1920?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14088048#comment-14088048
]
ASF subversion and git services commented on FLUME-1920:
--------------------------------------------------------
Commit 0c5b87a5dfd53bcdcf8e2d8c570735573cd274ad in flume's branch
refs/heads/trunk from [~mpercy]
[ https://git-wip-us.apache.org/repos/asf?p=flume.git;h=0c5b87a ]
FLUME-1920. Remove Hadoop dependency from integration tests
The file channel no longer actually depends on Hadoop, and this test was
exhibiting failures when Flume is built from paths containing the string
"hadoop". Since hadoop is not required for any of these tests, the
straightforward thing to do was to remove the now unnecessary Hadoop JAR
detection code completely.
(Li Xiang via Mike Percy)
> Test case TestFileChannel fails when flume is built from paths containing the
> string "hadoop"
> ---------------------------------------------------------------------------------------------
>
> Key: FLUME-1920
> URL: https://issues.apache.org/jira/browse/FLUME-1920
> Project: Flume
> Issue Type: Improvement
> Components: Test
> Affects Versions: v1.3.0, v1.4.0, v1.3.1, v1.5.0, v1.6.0
> Reporter: Aline Guedes Pinto
> Assignee: li xiang
> Priority: Minor
> Fix For: v1.6.0
>
> Attachments: FLUME-1920-1.patch, FLUME-1920-2.patch, FLUME-1920.patch
>
>
> When flume is built from a path that contains the string "hadoop" (ie:
> /home/user/hadoop_components/flume), the test case TestFileChannel fails.
> The reason it fails is because it can't find the correct location of the
> hadoop jar file - the function findHadoopJar in TestFileChannel.java
> looks for the hadoop jar path by searching for the string "hadoop" in the
> property java.class.path, and returns the first match of the search.
> This is not necessarily the correct location of the hadoop jar.
> The right thing to do is to look for the name of the hadoop jar in the
> classpath (ie: hadoop-core-1.1.1.jar), instead of looking for the string
> "hadoop".
--
This message was sent by Atlassian JIRA
(v6.2#6252)