You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@nutch.apache.org by ianwong <yi...@hotmail.com> on 2008/12/17 01:57:21 UTC

what is indexes in merge-output folder?

Hello mate, 

I tried recrawl.sh to do a recrawl job. It changed nothing to indexes in the
index folder , but I saw some new indexes were generated in the merge-output
folder under index folder. 

I want to know what is indexes in merge-out folder? Is it incremental or
completed? If it is incremental, how can i merge it with old index. If it is
completed version, can I move/replace indexes to index folder and delete
merge-out after merging?

I also create a script to merge indexes in those two folders, and indexes
are merged finally. 

But when I try to start a query server, It complains
Exception in thread "main" java.io.IOException: Unknown format version:-3

Br 
Ian 
-- 
View this message in context: http://www.nabble.com/what-is-indexes-in-merge-output-folder--tp21045183p21045183.html
Sent from the Nutch - User mailing list archive at Nabble.com.


Re: what is indexes in merge-output folder?

Posted by ianwong <yi...@hotmail.com>.

I am still confused by this topic. I presumed the index in merge-out is
completed not incremental, but the fact seems not.

I did a test again to re-crawl. The result is:

The first time generated index has never changed.
folder merge-out is generated with new index data in index folder.
new index data in merge-out is smaller than first time index. 5m vs 18m 

Anybody can offer me a clue?



ianwong wrote:
> 
> Hello mate, 
> 
> I tried recrawl.sh to do a recrawl job. It changed nothing to indexes in
> the index folder , but I saw some new indexes were generated in the
> merge-output folder under index folder. 
> 
> I want to know what is indexes in merge-out folder? Is it incremental or
> completed? If it is incremental, how can i merge it with old index. If it
> is completed version, can I move/replace indexes to index folder and
> delete merge-out after merging?
> 
> I also create a script to merge indexes in those two folders, and indexes
> are merged finally. 
> 
> But when I try to start a query server, It complains
> Exception in thread "main" java.io.IOException: Unknown format version:-3
> 
> Br 
> Ian 
> 

-- 
View this message in context: http://www.nabble.com/what-is-indexes-in-merge-output-folder--tp21045183p21216075.html
Sent from the Nutch - User mailing list archive at Nabble.com.


Re: what is indexes in merge-output folder?

Posted by ianwong <yi...@hotmail.com>.
When I try to merge indexes, I got follows:

IndexMerger: java.io.IOException: Target c22/index/merge-output already
exists
        at org.apache.hadoop.fs.FileUtil.checkDest(FileUtil.java:230)
        at org.apache.hadoop.fs.FileUtil.copy(FileUtil.java:70)
        at
org.apache.hadoop.fs.LocalFileSystem.copyFromLocalFile(LocalFileSyst
m.java:49)
        at
org.apache.hadoop.fs.FileSystem.moveFromLocalFile(FileSystem.java:75
)
        at
org.apache.hadoop.fs.ChecksumFileSystem.completeLocalOutput(Checksum
ileSystem.java:622)
        at org.apache.nutch.indexer.IndexMerger.merge(IndexMerger.java:117)
        at org.apache.nutch.indexer.IndexMerger.run(IndexMerger.java:163)
        at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:189)
        at org.apache.nutch.indexer.IndexMerger.main(IndexMerger.java:126)

this folder is created by hard code in  indexmerger.java : Path
tmpLocalOutput = new Path(localWorkingDir, "merge-output");

same question. what is indexes in merge-output folder?

Thanks

Ian

ianwong wrote:
> 
> Hello mate, 
> 
> I tried recrawl.sh to do a recrawl job. It changed nothing to indexes in
> the index folder , but I saw some new indexes were generated in the
> merge-output folder under index folder. 
> 
> I want to know what is indexes in merge-out folder? Is it incremental or
> completed? If it is incremental, how can i merge it with old index. If it
> is completed version, can I move/replace indexes to index folder and
> delete merge-out after merging?
> 
> I also create a script to merge indexes in those two folders, and indexes
> are merged finally. 
> 
> But when I try to start a query server, It complains
> Exception in thread "main" java.io.IOException: Unknown format version:-3
> 
> Br 
> Ian 
> 

-- 
View this message in context: http://www.nabble.com/what-is-indexes-in-merge-output-folder--tp21045183p21053121.html
Sent from the Nutch - User mailing list archive at Nabble.com.


Re: what is indexes in merge-output folder?

Posted by ianwong <yi...@hotmail.com>.
It seems merge-output is generated by:

$nutch_dir/nutch merge $index_dir $new_indexes



ianwong wrote:
> 
> Hello mate, 
> 
> I tried recrawl.sh to do a recrawl job. It changed nothing to indexes in
> the index folder , but I saw some new indexes were generated in the
> merge-output folder under index folder. 
> 
> I want to know what is indexes in merge-out folder? Is it incremental or
> completed? If it is incremental, how can i merge it with old index. If it
> is completed version, can I move/replace indexes to index folder and
> delete merge-out after merging?
> 
> I also create a script to merge indexes in those two folders, and indexes
> are merged finally. 
> 
> But when I try to start a query server, It complains
> Exception in thread "main" java.io.IOException: Unknown format version:-3
> 
> Br 
> Ian 
> 

-- 
View this message in context: http://www.nabble.com/what-is-indexes-in-merge-output-folder--tp21045183p21049887.html
Sent from the Nutch - User mailing list archive at Nabble.com.