You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by Anish Shah <av...@gmail.com> on 2010/02/18 00:04:53 UTC
New to Mahout - question about the failed test cases
Hi,
I am new to Mahout and going through the initial steps of setting the
development
environment on my machine. I checked out the latest code from trunk and
seeing
the following failed tests when I ran mvn clean install:
Results :
Failed tests:
testKMeansMRJob(org.apache.mahout.clustering.kmeans.TestKmeansClustering)
testKMeansWithCanopyClusterInput(org.apache.mahout.clustering.kmeans.TestKmean
sClustering)
Tests run: 338, Failures: 2, Errors: 0, Skipped: 0
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.
I looked in the surefire-reports and see the following details on the
failures:
testKMeansMRJob(org.apache.mahout.clustering.kmeans.TestKmeansClustering)
Time elapsed: 11.169 sec <<< FAILURE!
junit.framework.AssertionFailedError: clusters[3] expected:<4> but was:<2>
at junit.framework.Assert.fail(Assert.java:47)
...
testKMeansWithCanopyClusterInput(org.apache.mahout.clustering.kmeans.TestKmeansClustering)
Time elapsed: 3.35 sec <<< FAILURE!
junit.framework.AssertionFailedError: num points[0] expected:<4> but was:<1>
at junit.framework.Assert.fail(Assert.java:47)
...
I am wondering if this is unique to my environment or anyone else out there
is also seeing this.
Assuming that this is indeed an issue on the trunk, should I just go ahead
put the expected values
in the test cases and check them in so they pass or someone who has more
knowledge in this
area wishes to take a look into these failures?
Where would I find a prioritized list of "TODOs/bugs/..." for Mahout?
Thanks,
Anish Shah
Re: New to Mahout - question about the failed test cases
Posted by Robin Anil <ro...@gmail.com>.
If you search the archives, you will see this windows problem of one or more
unit tests failing every couple of months. As long as we are not having
build issues, i feel its not a big priority. it might hamper the dev but not
the usage.
Robin
On Fri, Feb 19, 2010 at 6:04 PM, Sean Owen <sr...@gmail.com> wrote:
> This is a wild guess, but I know the code always reads/writes Unix
> line breaks for consistency and repeatability. It's possible the line
> break issue is causing input to be misread on Windows.
>
> On Fri, Feb 19, 2010 at 12:13 PM, Grant Ingersoll <gs...@apache.org>
> wrote:
> > Does Hadoop even run on Windows? Even in Cygwin?
>
Re: New to Mahout - question about the failed test cases
Posted by Sean Owen <sr...@gmail.com>.
This is a wild guess, but I know the code always reads/writes Unix
line breaks for consistency and repeatability. It's possible the line
break issue is causing input to be misread on Windows.
On Fri, Feb 19, 2010 at 12:13 PM, Grant Ingersoll <gs...@apache.org> wrote:
> Does Hadoop even run on Windows? Even in Cygwin?
Re: New to Mahout - question about the failed test cases
Posted by Grant Ingersoll <gs...@apache.org>.
Does Hadoop even run on Windows? Even in Cygwin?
On Feb 18, 2010, at 8:20 PM, Anish Shah wrote:
> I have created https://issues.apache.org/jira/browse/MAHOUT-298 to track
> this.
>
> On Thu, Feb 18, 2010 at 6:59 PM, Ted Dunning <te...@gmail.com> wrote:
>
>> Darn. That uses up all of my ideas.
>>
>> I would vote for a platform issue.
>>
>> On Thu, Feb 18, 2010 at 3:41 PM, Anish Shah <av...@gmail.com> wrote:
>>
>>> I checked out revision 911542 (after removing the mahout-trunk from my
>>> local
>>> machine) and
>>> tried again and still getting the same 2 failures upon running mvn clean
>>> install!
>>>
>>
>>
>>
>> --
>> Ted Dunning, CTO
>> DeepDyve
>>
Re: New to Mahout - question about the failed test cases
Posted by Anish Shah <av...@gmail.com>.
I have created https://issues.apache.org/jira/browse/MAHOUT-298 to track
this.
On Thu, Feb 18, 2010 at 6:59 PM, Ted Dunning <te...@gmail.com> wrote:
> Darn. That uses up all of my ideas.
>
> I would vote for a platform issue.
>
> On Thu, Feb 18, 2010 at 3:41 PM, Anish Shah <av...@gmail.com> wrote:
>
> > I checked out revision 911542 (after removing the mahout-trunk from my
> > local
> > machine) and
> > tried again and still getting the same 2 failures upon running mvn clean
> > install!
> >
>
>
>
> --
> Ted Dunning, CTO
> DeepDyve
>
Re: New to Mahout - question about the failed test cases
Posted by Ted Dunning <te...@gmail.com>.
Darn. That uses up all of my ideas.
I would vote for a platform issue.
On Thu, Feb 18, 2010 at 3:41 PM, Anish Shah <av...@gmail.com> wrote:
> I checked out revision 911542 (after removing the mahout-trunk from my
> local
> machine) and
> tried again and still getting the same 2 failures upon running mvn clean
> install!
>
--
Ted Dunning, CTO
DeepDyve
Re: New to Mahout - question about the failed test cases
Posted by Anish Shah <av...@gmail.com>.
Ted,
I checked out revision 911542 (after removing the mahout-trunk from my local
machine) and
tried again and still getting the same 2 failures upon running mvn clean
install!
Anish
On Thu, Feb 18, 2010 at 11:51 AM, Ted Dunning <te...@gmail.com> wrote:
> Note the different version number here.
>
> I think that Anish has somehow gotten stuck on an old version. Anish, can
> you do a clean checkout and build?
>
> On Thu, Feb 18, 2010 at 6:16 AM, Robin Anil <ro...@gmail.com> wrote:
>
> > I am building Revision: 911405 on a Mac, and things work fine for me. I
> am
> > assuming same is the case for sean(mac)
> >
> > ...
> >
> >
> > On Thu, Feb 18, 2010 at 6:11 PM, Anish Shah <av...@gmail.com> wrote:
> >
> > ...
> > > $ svn co http://svn.apache.org/repos/asf/lucene/mahout/trunk
> > > Checked out revision 911364.
> > >
> >
>
>
>
> --
> Ted Dunning, CTO
> DeepDyve
>
Re: New to Mahout - question about the failed test cases
Posted by Ted Dunning <te...@gmail.com>.
Note the different version number here.
I think that Anish has somehow gotten stuck on an old version. Anish, can
you do a clean checkout and build?
On Thu, Feb 18, 2010 at 6:16 AM, Robin Anil <ro...@gmail.com> wrote:
> I am building Revision: 911405 on a Mac, and things work fine for me. I am
> assuming same is the case for sean(mac)
>
> ...
>
>
> On Thu, Feb 18, 2010 at 6:11 PM, Anish Shah <av...@gmail.com> wrote:
>
> ...
> > $ svn co http://svn.apache.org/repos/asf/lucene/mahout/trunk
> > Checked out revision 911364.
> >
>
--
Ted Dunning, CTO
DeepDyve
Re: New to Mahout - question about the failed test cases
Posted by Robin Anil <ro...@gmail.com>.
I am building Revision: 911405 on a Mac, and things work fine for me. I am
assuming same is the case for sean(mac)
One reason i assume and error could come is that on windows the output
directories doesnt get deleted if the filesystem locks it(for reason i
cannot fathom). Could you try deleting testdata and output directories which
are formed and try again. Those directories could have some data used by the
Kmeans test and is deleted before the canopy test.
Other than that if you are building the mahout for usage do: mvn clean
install -DskipTests=true
Robin
On Thu, Feb 18, 2010 at 6:11 PM, Anish Shah <av...@gmail.com> wrote:
> I tried again by first syncing from the trunk and running mvn install using
> the following
> and getting the same test failures! I am running this on Windows 7 machine
> using Cigwin.
>
> $ svn co http://svn.apache.org/repos/asf/lucene/mahout/trunk
> Checked out revision 911364.
>
> $ mvn clean install
> ...... lots of junit test successes and the following failure
>
> Results :
>
> Failed tests:
> testKMeansMRJob(org.apache.mahout.clustering.kmeans.TestKmeansClustering)
>
> testKMeansWithCanopyClusterInput(org.apache.mahout.clustering.kmeans.TestKmean
> sClustering)
>
> Tests run: 338, Failures: 2, Errors: 0, Skipped: 0
>
> On Thu, Feb 18, 2010 at 5:40 AM, Robin Anil <ro...@gmail.com> wrote:
>
> > Yeah me neither. Could you try syncing from the trunk
> >
> >
> >
> > On Thu, Feb 18, 2010 at 4:08 PM, Sean Owen <sr...@gmail.com> wrote:
> >
> > > I'm not seeing any such failures myself, from head.
> > >
> > > In case Robin just fixed something, try again from head?
> > >
> > >
> > > On Wed, Feb 17, 2010 at 11:04 PM, Anish Shah <av...@gmail.com>
> wrote:
> > > > Hi,
> > > >
> > > > I am new to Mahout and going through the initial steps of setting the
> > > > development
> > > > environment on my machine. I checked out the latest code from trunk
> and
> > > > seeing
> > > > the following failed tests when I ran mvn clean install:
> > > >
> > >
> >
>
Re: New to Mahout - question about the failed test cases
Posted by Anish Shah <av...@gmail.com>.
I tried again by first syncing from the trunk and running mvn install using
the following
and getting the same test failures! I am running this on Windows 7 machine
using Cigwin.
$ svn co http://svn.apache.org/repos/asf/lucene/mahout/trunk
Checked out revision 911364.
$ mvn clean install
...... lots of junit test successes and the following failure
Results :
Failed tests:
testKMeansMRJob(org.apache.mahout.clustering.kmeans.TestKmeansClustering)
testKMeansWithCanopyClusterInput(org.apache.mahout.clustering.kmeans.TestKmean
sClustering)
Tests run: 338, Failures: 2, Errors: 0, Skipped: 0
On Thu, Feb 18, 2010 at 5:40 AM, Robin Anil <ro...@gmail.com> wrote:
> Yeah me neither. Could you try syncing from the trunk
>
>
>
> On Thu, Feb 18, 2010 at 4:08 PM, Sean Owen <sr...@gmail.com> wrote:
>
> > I'm not seeing any such failures myself, from head.
> >
> > In case Robin just fixed something, try again from head?
> >
> >
> > On Wed, Feb 17, 2010 at 11:04 PM, Anish Shah <av...@gmail.com> wrote:
> > > Hi,
> > >
> > > I am new to Mahout and going through the initial steps of setting the
> > > development
> > > environment on my machine. I checked out the latest code from trunk and
> > > seeing
> > > the following failed tests when I ran mvn clean install:
> > >
> >
>
Re: New to Mahout - question about the failed test cases
Posted by Robin Anil <ro...@gmail.com>.
Yeah me neither. Could you try syncing from the trunk
On Thu, Feb 18, 2010 at 4:08 PM, Sean Owen <sr...@gmail.com> wrote:
> I'm not seeing any such failures myself, from head.
>
> In case Robin just fixed something, try again from head?
>
>
> On Wed, Feb 17, 2010 at 11:04 PM, Anish Shah <av...@gmail.com> wrote:
> > Hi,
> >
> > I am new to Mahout and going through the initial steps of setting the
> > development
> > environment on my machine. I checked out the latest code from trunk and
> > seeing
> > the following failed tests when I ran mvn clean install:
> >
>
Re: New to Mahout - question about the failed test cases
Posted by Sean Owen <sr...@gmail.com>.
I'm not seeing any such failures myself, from head.
In case Robin just fixed something, try again from head?
On Wed, Feb 17, 2010 at 11:04 PM, Anish Shah <av...@gmail.com> wrote:
> Hi,
>
> I am new to Mahout and going through the initial steps of setting the
> development
> environment on my machine. I checked out the latest code from trunk and
> seeing
> the following failed tests when I ran mvn clean install:
>