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

li xiang commented on FLUME-1920:
---------------------------------

Hi Mike, I found a way to run TestFileChannel: after entering flume-ng-tests 
folder, I issued "mvn package". Sorry that I am not good at maven.
I failed to trigger the test by "mvn test" but "mvn package", is this because 
"<phase>package</phase>" is specified within <build> and </build> in the 
pom.xml ?

the test case failed afterwards:
Running org.apache.flume.test.agent.TestFileChannel
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.307 sec <<< 
FAILURE!
testInOut(org.apache.flume.test.agent.TestFileChannel)  Time elapsed: 0.085 sec 
 <<< ERROR!
java.lang.Exception: Failed to locate tar-ball distribution. Please specify 
explicitly via system property: flume.dist.tarball
        at 
org.apache.flume.test.util.StagedInstall.<init>(StagedInstall.java:229)
        at 
org.apache.flume.test.util.StagedInstall.getInstance(StagedInstall.java:79)
        at 
org.apache.flume.test.agent.TestFileChannel.testInOut(TestFileChannel.java:130)

Do you know how to solve it ? Thanks !






> 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: Aline Guedes Pinto
>            Priority: Minor
>         Attachments: FLUME-1920-1.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)

Reply via email to