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

Hari Shreedharan commented on FLUME-1920:
-----------------------------------------

[~alinegds] - The patch causes the build to fail with:
{code}
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project  
(/Users/hshreedharan/work/flume-latest/flume/flume-ng-tests/pom.xml) has 1 error
[ERROR]     Non-parseable POM 
/Users/hshreedharan/work/flume-latest/flume/flume-ng-tests/pom.xml: Duplicated 
tag: 'build' (position: START_TAG seen ...</dependencies>\n\n  <build>... 
@86:10)  @ line 86, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] 
http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
{code}

You should probably have only one <build> tag in flume-ng-tests/pom.xml (There 
is one at the end - you should just add the contents of this patch in that one.
                
> 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
>            Reporter: Aline Guedes Pinto
>            Assignee: Aline Guedes Pinto
>            Priority: Minor
>             Fix For: v1.3.0, v1.3.1
>
>         Attachments: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to