You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Darius Miliauskas <da...@gmail.com> on 2013/08/27 15:37:21 UTC

Error while Compiling Simple App with Mahout (v. 0.8)

Dear All,

let's say I tried to run the first app following the really great tutorial (
https://code.google.com/p/unresyst/wiki/CreateMahoutRecommender), thanks
for the author. So, basically, the simple program "Hello World!" worked.
However, later I tried to add the dependencies or import some libraries of
mahout, and I got errors as result. The errors from Command line looks like
this:


C:\mahout-distribution-0.8\mahoutrec>mvn compile
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building mahoutrec 1.0-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[WARNING] The POM for org.apache.mahout:mahout-utils:jar:0.8 is missing, no
depe
ndency information available
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 0.818s
[INFO] Finished at: Tue Aug 27 16:31:32 EEST 2013
[INFO] Final Memory: 7M/110M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal on project mahoutrec: Could not resolve
dependenc
ies for project com.myFirstMahout:mahoutrec:jar:1.0-SNAPSHOT: Failure to
find or
g.apache.mahout:mahout-utils:jar:0.8 in http://repo.maven.apache.org/maven2
 was
cached in the local repository, resolution will not be reattempted until
the upd
ate interval of central has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException
'cmd' is not recognized as an internal or external command,
operable program or batch file.
C:\mahout-distribution-0.8\mahoutrec>


Sincerely Yours,

Darius

Re: Error while Compiling Simple App with Mahout (v. 0.8)

Posted by Darius Miliauskas <da...@gmail.com>.
Dear Gokham,

thank you! That's a great answer with some suggestions! You made an
important point that "SlopeOneRecommender" does not exist - I did not know
that!


Thanks,

Darius


2013/8/29 Gokhan Capan <gk...@gmail.com>

> Hi Darius,
>
> There is no module called mahout-utils in mahout 0.8. The documentation you
> referred to is prepared for mahout 0.4, it is outdated.
> So if you want to use mahout 0.8, remove that dependency, mahout-core would
> be sufficient.
>
> But that wouldn't compile, since SlopeOneRecommender doesn't exist in
> Mahout any more. You should replace it with another recommender, for
> example, a neighborhood based recommender with a similarity measure that
> supports boolean ratings.
>
> An example modification for the tutorial you referred to works for 0.8:
>
> REMOVE:
> CachingRecommender cachingRecommender = new CachingRecommender (new
> SlopeOneRecommender(model));
>
> ADD:
>     UserSimilarity similarity = new CachingUserSimilarity(new
> LogLikelihoodSimilarity(model), model);
>     UserNeighborhood neighborhood = new NearestNUserNeighborhood(10,
> Double.NEGATIVE_INFINITY, similarity, model, 1.0);
>     CachingRecommender cachingRecommender = new CachingRecommender (new
> GenericBooleanPrefUserBasedRecommender(model, neighborhood, similarity));
>
>
> Best
>
> Gokhan
>
>
> On Tue, Aug 27, 2013 at 4:37 PM, Darius Miliauskas <
> dariui.miliauskui@gmail.com> wrote:
>
> > Dear All,
> >
> > let's say I tried to run the first app following the really great
> tutorial
> > (
> > https://code.google.com/p/unresyst/wiki/CreateMahoutRecommender), thanks
> > for the author. So, basically, the simple program "Hello World!" worked.
> > However, later I tried to add the dependencies or import some libraries
> of
> > mahout, and I got errors as result. The errors from Command line looks
> like
> > this:
> >
> >
> > C:\mahout-distribution-0.8\mahoutrec>mvn compile
> > [INFO] Scanning for projects...
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Building mahoutrec 1.0-SNAPSHOT
> > [INFO]
> > ------------------------------------------------------------------------
> > [WARNING] The POM for org.apache.mahout:mahout-utils:jar:0.8 is missing,
> no
> > depe
> > ndency information available
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 0.818s
> > [INFO] Finished at: Tue Aug 27 16:31:32 EEST 2013
> > [INFO] Final Memory: 7M/110M
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal on project mahoutrec: Could not resolve
> > dependenc
> > ies for project com.myFirstMahout:mahoutrec:jar:1.0-SNAPSHOT: Failure to
> > find or
> > g.apache.mahout:mahout-utils:jar:0.8 in
> > http://repo.maven.apache.org/maven2
> >  was
> > cached in the local repository, resolution will not be reattempted until
> > the upd
> > ate interval of central has elapsed or updates are forced -> [Help 1]
> > [ERROR]
> > [ERROR] To see the full stack trace of the errors, re-run Maven with the
> -e
> > swit
> > ch.
> > [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 rea
> > d the following articles:
> > [ERROR] [Help 1]
> > http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
> > lutionException
> > 'cmd' is not recognized as an internal or external command,
> > operable program or batch file.
> > C:\mahout-distribution-0.8\mahoutrec>
> >
> >
> > Sincerely Yours,
> >
> > Darius
> >
>

Re: Error while Compiling Simple App with Mahout (v. 0.8)

Posted by Gokhan Capan <gk...@gmail.com>.
Hi Darius,

There is no module called mahout-utils in mahout 0.8. The documentation you
referred to is prepared for mahout 0.4, it is outdated.
So if you want to use mahout 0.8, remove that dependency, mahout-core would
be sufficient.

But that wouldn't compile, since SlopeOneRecommender doesn't exist in
Mahout any more. You should replace it with another recommender, for
example, a neighborhood based recommender with a similarity measure that
supports boolean ratings.

An example modification for the tutorial you referred to works for 0.8:

REMOVE:
CachingRecommender cachingRecommender = new CachingRecommender (new
SlopeOneRecommender(model));

ADD:
    UserSimilarity similarity = new CachingUserSimilarity(new
LogLikelihoodSimilarity(model), model);
    UserNeighborhood neighborhood = new NearestNUserNeighborhood(10,
Double.NEGATIVE_INFINITY, similarity, model, 1.0);
    CachingRecommender cachingRecommender = new CachingRecommender (new
GenericBooleanPrefUserBasedRecommender(model, neighborhood, similarity));


Best

Gokhan


On Tue, Aug 27, 2013 at 4:37 PM, Darius Miliauskas <
dariui.miliauskui@gmail.com> wrote:

> Dear All,
>
> let's say I tried to run the first app following the really great tutorial
> (
> https://code.google.com/p/unresyst/wiki/CreateMahoutRecommender), thanks
> for the author. So, basically, the simple program "Hello World!" worked.
> However, later I tried to add the dependencies or import some libraries of
> mahout, and I got errors as result. The errors from Command line looks like
> this:
>
>
> C:\mahout-distribution-0.8\mahoutrec>mvn compile
> [INFO] Scanning for projects...
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building mahoutrec 1.0-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [WARNING] The POM for org.apache.mahout:mahout-utils:jar:0.8 is missing, no
> depe
> ndency information available
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 0.818s
> [INFO] Finished at: Tue Aug 27 16:31:32 EEST 2013
> [INFO] Final Memory: 7M/110M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project mahoutrec: Could not resolve
> dependenc
> ies for project com.myFirstMahout:mahoutrec:jar:1.0-SNAPSHOT: Failure to
> find or
> g.apache.mahout:mahout-utils:jar:0.8 in
> http://repo.maven.apache.org/maven2
>  was
> cached in the local repository, resolution will not be reattempted until
> the upd
> ate interval of central has elapsed or updates are forced -> [Help 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> swit
> ch.
> [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 rea
> d the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
> lutionException
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
> C:\mahout-distribution-0.8\mahoutrec>
>
>
> Sincerely Yours,
>
> Darius
>