check the nutch-default.xml
there should be a property searcher.dir
Provide the path for the index folder.
Better still copy the property node and paste it in nutch-site.xml
provide the path for the index folder.
For ex:
If the index folder is stored as
home/nutch/crawl
- crawldb
- segments
- index
- indexes
point searcher.dir to home/nutch/crawl.
Hope this helps.
Thanks
Sudhi
Paul Stewart <[EMAIL PROTECTED]> wrote: Thanks.... I was doing the java command
wrong...
Back to my original problem - I re-ran throught the entire tutorial to
ensure I was doing it right and it seems proper.... How do I tell Nutch
where to look specifically in the code for the segments and indexes in
case it is in the wrong place?
All the best,
Paul
-----Original Message-----
From: sudhendra seshachala [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 12:02 PM
To: [email protected]
Subject: RE: Nutch 500 Error
It should be java -versionI think.
Paul Stewart
wrote: Thanks for the reply...
I apologize as I'm very new to the Java
world...:)
I am running the following:
Fedora Core 4
Apache Tomcat 5.5.16 (binary download from Tomcat site installed to
/usr/local/tomcat5)
jre1.5.0_06 (binary download from Sun site to /usr/java/jre1.5.0_06)
Weird though - when I try to do a java -v I get this now:
[EMAIL PROTECTED] jre1.5.0_06]# export JAVA_HOME=/usr/java/jre1.5.0_06/
[EMAIL PROTECTED] jre1.5.0_06]# /usr/java/jre1.5.0_06/bin/java -v
Unrecognized option: -v Could not create the Java virtual machine.
Is this my actual problem possibly? Or is this the wrong Java version to
be running? When I downloaded 1.4.x tomcat told me it didn't support
anything but 1.5.x
Thanks again for your patience...
Paul
-----Original Message-----
From: TDLN [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 06, 2006 7:16 AM
To: [email protected]
Subject: Re: Nutch 500 Error
What version are you on? If you trace the NullPointerException back to
the code, the NutchBean.init method is where it expects to find the
index and segments, so either they're missing (did you follow the
tutorial and merge your segment indexes?) or it is looking in the wrong
place. That's what I think.
Rgrds, Thomas
On 4/6/06, Paul Stewart
wrote:
> Thanks.. Tried that ... Same error....
>
> HTTP Status 500 -
>
> ----------------------------------------------------------------------
> --
> --------
>
> type Exception report
>
> message
>
> description The server encountered an internal error () that prevented
> it from fulfilling this request.
>
> exception
>
> org.apache.jasper.JasperException
>
> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServ
> le
> tWrapper.java:510)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> ja
> va:393)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31
> 4)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
>
> root cause
>
> java.lang.NullPointerException
> org.apache.nutch.searcher.NutchBean.init(NutchBean.java:96)
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:82)
> org.apache.nutch.searcher.NutchBean.(NutchBean.java:72)
> org.apache.nutch.searcher.NutchBean.get(NutchBean.java:64)
> org.apache.jsp.search_jsp._jspService(search_jsp.java:112)
>
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.
> ja
> va:332)
>
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:31
> 4)
>
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>
> -----Original Message-----
> From: TDLN [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 06, 2006 3:30 AM
> To: [email protected]
> Subject: Re: Nutch 500 Error
>
> My guess is you have to override the searcher.dir property in
> nutch-site.xml and have it point to your crawl dir.
>
> Rgrds, Thomas
>
>
>
>
Sudhi Seshachala
http://sudhilogs.blogspot.com/
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low
rates.
Sudhi Seshachala
http://sudhilogs.blogspot.com/
---------------------------------
Love cheap thrills? Enjoy PC-to-Phone calls to 30+ countries for just 2ยข/min
with Yahoo! Messenger with Voice.