You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by James Harvey <ja...@gmail.com> on 2008/11/25 05:00:08 UTC

nutch-site.xml

Hi,

I'm trying to integrate nutch into a groovy/grails application which runs on
the jetty servlet container.  I can't seem to override the nutch-site.xml to
point to my crawl directory.  I am putting it in WEB-INF/classes/ directory,
but it doesn't seem to pick it up.  Any ideas why?  Is this the correct
place to put the nutch-site.xml file to override it for a java web
application.  Any help would be much appreciated.

Thanks,
-James

Re: nutch-site.xml

Posted by Dennis Kubes <ku...@apache.org>.
Nutch will pick up the first nutch-site.xml file in the classpath.  This 
includes anything in the nutch.job file.  My guess would be that your 
classes directory is not the first in the classpath, that there is 
another nutch-site.xml file earlier, possibly in the job file, and it is 
picking that up.

Dennis

James Harvey wrote:
> Hi,
> 
> I'm trying to integrate nutch into a groovy/grails application which runs on
> the jetty servlet container.  I can't seem to override the nutch-site.xml to
> point to my crawl directory.  I am putting it in WEB-INF/classes/ directory,
> but it doesn't seem to pick it up.  Any ideas why?  Is this the correct
> place to put the nutch-site.xml file to override it for a java web
> application.  Any help would be much appreciated.
> 
> Thanks,
> -James
> 

Re: nutch-site.xml

Posted by James Harvey <ja...@gmail.com>.
So if I understand correctly, I have to build my own version of the
nutch-0.9.jar with a changed version of nutch-default.xml?  I am currently
just dropping a copy of the nutch-0.9.jar from my nutch download in my lib
directory.

On Tue, Nov 25, 2008 at 3:57 AM, Benny Lipsicas <be...@isoc.org.il> wrote:

> Hello James,
>
> I faced a similar problem. Couldn't find the reason. Although it is said
> to be not-recommended in all the documentation I saw, changing
> searcher.dir in nutch-default.xml did the work.
>
> Benny
>
>
> James Harvey wrote:
> > Hi,
> >
> > I'm trying to integrate nutch into a groovy/grails application which runs
> on
> > the jetty servlet container.  I can't seem to override the nutch-site.xml
> to
> > point to my crawl directory.  I am putting it in WEB-INF/classes/
> directory,
> > but it doesn't seem to pick it up.  Any ideas why?  Is this the correct
> > place to put the nutch-site.xml file to override it for a java web
> > application.  Any help would be much appreciated.
> >
> > Thanks,
> > -James
> >
>
>

Re: nutch-site.xml

Posted by Benny Lipsicas <be...@isoc.org.il>.
Hello James,

I faced a similar problem. Couldn't find the reason. Although it is said
to be not-recommended in all the documentation I saw, changing
searcher.dir in nutch-default.xml did the work.

Benny


James Harvey wrote:
> Hi,
> 
> I'm trying to integrate nutch into a groovy/grails application which runs on
> the jetty servlet container.  I can't seem to override the nutch-site.xml to
> point to my crawl directory.  I am putting it in WEB-INF/classes/ directory,
> but it doesn't seem to pick it up.  Any ideas why?  Is this the correct
> place to put the nutch-site.xml file to override it for a java web
> application.  Any help would be much appreciated.
> 
> Thanks,
> -James
>