You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by Aline Guedes <al...@linux.vnet.ibm.com> on 2013/02/18 21:30:12 UTC
Test case TestFileChannel fails when flume is built from paths containing
the string "hadoop"
Hello,
When flume 1.3.0 or 1.3.1 is built from a path that contains the string
"hadoop" in it (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.
Would you agree that 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"?
Best regards,
Aline Guedes
Re: Test case TestFileChannel fails when flume is built from paths
containing the string "hadoop"
Posted by Brock Noland <br...@cloudera.com>.
Great! Thanks!
On Mon, Feb 18, 2013 at 7:32 PM, Aline Guedes
<al...@linux.vnet.ibm.com>wrote:
> On 02/18/2013 05:35 PM, Brock Noland wrote:
>
>> That sounds correct. Do you want to create a JIRA and if you have one,
>> attach a patch?
>>
>> I created a JIRA at https://issues.apache.org/**jira/browse/FLUME-1920<https://issues.apache.org/jira/browse/FLUME-1920>.
> I will work on a patch and attach to it.
>
>
>
--
Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/
Re: Test case TestFileChannel fails when flume is built from paths
containing the string "hadoop"
Posted by Aline Guedes <al...@linux.vnet.ibm.com>.
On 02/18/2013 05:35 PM, Brock Noland wrote:
> That sounds correct. Do you want to create a JIRA and if you have one, attach a patch?
>
I created a JIRA at https://issues.apache.org/jira/browse/FLUME-1920. I
will work on a patch and attach to it.
Re: Test case TestFileChannel fails when flume is built from
paths containing the string "hadoop"
Posted by Brock Noland <br...@cloudera.com>.
That sounds correct. Do you want to create a JIRA and if you have one, attach a patch?
--
Brock Noland
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
On Monday, February 18, 2013 at 2:30 PM, Aline Guedes wrote:
> Hello,
>
> When flume 1.3.0 or 1.3.1 is built from a path that contains the string
> "hadoop" in it (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.
>
> Would you agree that 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"?
>
> Best regards,
> Aline Guedes
>
>