You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by xu xiong <xi...@gmail.com> on 2007/06/06 05:49:20 UTC
search problem-no segments* file found
Hi there,
I run nutch 0.9 follow the tutorial
(http://wiki.apache.org/nutch/NutchTutorial) step by step, until
searching every step seems ok.
But when I search:
[xux@host1 nutch-0.9]$ bin/nutch org.apache.nutch.searcher.NutchBean TV
Exception in thread "main" java.io.FileNotFoundException: no segments*
file found: files:
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:485)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:147)
at org.apache.lucene.index.IndexReader.open(IndexReader.java:142)
at org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher.java:71)
at org.apache.nutch.searcher.NutchBean.init(NutchBean.java:119)
at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:106)
at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:84)
at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:388)
Here is the crawl dir layout:
[xux@host1 nutch-0.9]$ ls crawl/
crawldb index linkdb segments
What cause the exception?
Thanks in advance,
Xiong
Re: search problem-no segments* file found
Posted by xu xiong <xi...@gmail.com>.
I rename the directory index to indexes, now NutchBean works OK.
2007/6/6, xu xiong <xi...@gmail.com>:
> Hi there,
>
> I run nutch 0.9 follow the tutorial
> (http://wiki.apache.org/nutch/NutchTutorial) step by step, until
> searching every step seems ok.
> But when I search:
> [xux@host1 nutch-0.9]$ bin/nutch org.apache.nutch.searcher.NutchBean TV
> Exception in thread "main" java.io.FileNotFoundException: no segments*
> file found: files:
> at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:485)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:147)
> at org.apache.lucene.index.IndexReader.open(IndexReader.java:142)
> at org.apache.nutch.searcher.IndexSearcher.<init>(IndexSearcher.java:71)
> at org.apache.nutch.searcher.NutchBean.init(NutchBean.java:119)
> at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:106)
> at org.apache.nutch.searcher.NutchBean.<init>(NutchBean.java:84)
> at org.apache.nutch.searcher.NutchBean.main(NutchBean.java:388)
>
> Here is the crawl dir layout:
> [xux@host1 nutch-0.9]$ ls crawl/
> crawldb index linkdb segments
>
> What cause the exception?
>
> Thanks in advance,
> Xiong
>