Hi,

I haven't looked into it deeply, but the patch was created from the
trunk of the source repository and you are attempting to patch 0.9.
I'm guessing that that the .9 branch is significantly different and so
the patch won't apply cleanly.  I would suggest getting a recent
version of trunk, applying the patch, and following
http://wiki.apache.org/nutch/Upgrading_Hadoop .


-lincoln

--
lincolnritter.com



On Sun, Jun 15, 2008 at 8:01 AM, gaoqiang <[EMAIL PROTECTED]> wrote:
> Hi,
>
>          I'm using Michael's patch. But Maybe I don't really know how to use
> it.
>
>          I used that by command : patch –p0 < hadoop-0.17.patch-1.
>
>          But I get some failed things.
>
>          I download nutch-0.9.tar.gz from
> http://apache.mirror.phpchina.com/lucene/nutch/.
>
> The output is as follows, can you give me some advice ?
>
> Thanks very much !
>
>
>
> patching file src/java/org/apache/nutch/fetcher/FetcherOutputFormat.java
>
> Hunk #1 succeeded at 38 (offset -4 lines).
>
> Hunk #2 succeeded at 62 with fuzz 2 (offset -3 lines).
>
> patching file src/java/org/apache/nutch/searcher/NutchBean.java
>
> Hunk #1 FAILED at 122.
>
> 1 out of 1 hunk FAILED -- saving rejects to file
> src/java/org/apache/nutch/searcher/NutchBean.java.rej
>
> patching file src/java/org/apache/nutch/searcher/FetchedSegments.java
>
> Hunk #1 succeeded at 115 (offset -1 lines).
>
> patching file src/java/org/apache/nutch/indexer/DeleteDuplicates.java
>
> Hunk #1 succeeded at 76 (offset 2 lines).
>
> Hunk #3 succeeded at 286 with fuzz 2 (offset -6 lines).
>
> Hunk #5 succeeded at 331 (offset -6 lines).
>
> patching file src/java/org/apache/nutch/indexer/IndexMerger.java
>
> Hunk #2 FAILED at 36.
>
> 1 out of 2 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/indexer/IndexMerger.java.rej
>
> patching file src/java/org/apache/nutch/indexer/FsDirectory.java
>
> Hunk #1 FAILED at 54.
>
> 1 out of 1 hunk FAILED -- saving rejects to file
> src/java/org/apache/nutch/indexer/FsDirectory.java.rej
>
> patching file src/java/org/apache/nutch/tools/compat/CrawlDbConverter.java
>
> can't find file to patch at input line 502
>
> Perhaps you used the wrong -p or --strip option?
>
> The text leading up to this was:
>
> --------------------------
>
> |Index: src/java/org/apache/nutch/tools/arc/ArcRecordReader.java
>
> |===================================================================
>
> |--- src/java/org/apache/nutch/tools/arc/ArcRecordReader.java   (revision
> 666205)
>
> |+++ src/java/org/apache/nutch/tools/arc/ArcRecordReader.java   (working
> copy)
>
> --------------------------
>
> File to patch:
>
> Skip this patch? [y] ye^H
>
> Skipping patch.
>
> 1 out of 1 hunk ignored
>
> patching file src/java/org/apache/nutch/segment/SegmentMerger.java
>
> Hunk #1 succeeded at 28 with fuzz 2.
>
> Hunk #2 succeeded at 109 (offset -2 lines).
>
> Hunk #3 succeeded at 181 (offset 2 lines).
>
> Hunk #4 FAILED at 315.
>
> Hunk #5 succeeded at 329 (offset -14 lines).
>
> Hunk #6 succeeded at 360 with fuzz 2 (offset 1 line).
>
> Hunk #7 FAILED at 628.
>
> 2 out of 7 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/segment/SegmentMerger.java.rej
>
> patching file src/java/org/apache/nutch/segment/SegmentReader.java
>
> Hunk #1 FAILED at 40.
>
> Hunk #4 succeeded at 103 with fuzz 2.
>
> Hunk #5 FAILED at 163.
>
> Hunk #6 FAILED at 221.
>
> Hunk #7 succeeded at 230 (offset 1 line).
>
> Hunk #8 FAILED at 561.
>
> 4 out of 8 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/segment/SegmentReader.java.rej
>
> patching file src/java/org/apache/nutch/crawl/CrawlDbReader.java
>
> Hunk #1 succeeded at 45 (offset -4 lines).
>
> Hunk #2 succeeded at 56 with fuzz 2 (offset -2 lines).
>
> Hunk #3 succeeded at 254 (offset -54 lines).
>
> Hunk #4 succeeded at 314 (offset -2 lines).
>
> Hunk #5 succeeded at 380 (offset -56 lines).
>
> patching file src/java/org/apache/nutch/crawl/CrawlDatum.java
>
> Hunk #1 succeeded at 425 (offset -8 lines).
>
> patching file src/java/org/apache/nutch/crawl/LinkDbMerger.java
>
> Hunk #1 FAILED at 83.
>
> 1 out of 1 hunk FAILED -- saving rejects to file
> src/java/org/apache/nutch/crawl/LinkDbMerger.java.rej
>
> patching file src/java/org/apache/nutch/crawl/Crawl.java
>
> Hunk #1 FAILED at 141.
>
> 1 out of 1 hunk FAILED -- saving rejects to file
> src/java/org/apache/nutch/crawl/Crawl.java.rej
>
> patching file src/java/org/apache/nutch/crawl/LinkDbFilter.java
>
> Hunk #1 succeeded at 37 (offset -1 lines).
>
> Hunk #2 succeeded at 74 with fuzz 2 (offset 1 line).
>
> patching file src/java/org/apache/nutch/crawl/Injector.java
>
> Hunk #1 FAILED at 102.
>
> Hunk #2 succeeded at 156 (offset 5 lines).
>
> 1 out of 2 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/crawl/Injector.java.rej
>
> patching file src/java/org/apache/nutch/crawl/CrawlDbMerger.java
>
> Hunk #1 FAILED at 64.
>
> Hunk #2 FAILED at 80.
>
> 2 out of 2 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/crawl/CrawlDbMerger.java.rej
>
> patching file src/java/org/apache/nutch/crawl/Inlink.java
>
> patching file src/java/org/apache/nutch/crawl/CrawlDbFilter.java
>
> Hunk #2 succeeded at 75 (offset 3 lines).
>
> patching file src/java/org/apache/nutch/crawl/Generator.java
>
> Hunk #1 FAILED at 30.
>
> Hunk #2 FAILED at 342.
>
> Hunk #3 succeeded at 409 (offset -40 lines).
>
> Hunk #4 FAILED at 421.
>
> 3 out of 4 hunks FAILED -- saving rejects to file
> src/java/org/apache/nutch/crawl/Generator.java.rej
>
> patching file src/java/org/apache/nutch/crawl/CrawlDbReducer.java
>
> Hunk #2 succeeded at 49 (offset -6 lines).
>
> patching file src/java/org/apache/nutch/parse/ParseOutputFormat.java
>
> Hunk #1 succeeded at 39 with fuzz 1 (offset -5 lines).
>
> Hunk #2 succeeded at 56 with fuzz 1 (offset -23 lines).
>
> Hunk #3 succeeded at 99 with fuzz 2 (offset -12 lines).
>
>
>
>

Reply via email to