[ 
https://issues.apache.org/jira/browse/NUTCH-1526?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14002357#comment-14002357
 ] 

Julien Nioche commented on NUTCH-1526:
--------------------------------------

Can't access the review board for it at this minute but without looking at the 
code : we already have a segment reader that can read, filter and dump the 
content of one or more segments. Why don't we extend it with a new function 
(e.g. -dumpBinary) instead of having a new separate class for this which would 
have a large code overlap with it.

 

> Create SegmentContentDumperTool for easily extracting out file contents from 
> SegmentDirs
> ----------------------------------------------------------------------------------------
>
>                 Key: NUTCH-1526
>                 URL: https://issues.apache.org/jira/browse/NUTCH-1526
>             Project: Nutch
>          Issue Type: New Feature
>            Reporter: Chris A. Mattmann
>              Labels: content, dumper, nutch, tools
>
> It only took me 1.2 years, but I finally got around to it. This patch will 
> deliver a SegmentContentDumper tool per the description here:
> http://s.apache.org/kv
> And per the interface here:
> {noformat}
> ./bin/nutch org.apache.nutch.tools.SegmentContentDumper [options]
>    -segmentRootDir full file path to the root segment directory, e.g., 
> crawl/segments
>    -regexUrlPattern a regex URL pattern to select URL keys to dump from the 
> content DB in each segment
>    -outputDir The output directory to write file names to.
>    -metadata --key=value where key is a Content Metadata key and value is a 
> value to check.
> {noformat}
> If the URL and its content metadata have a matching key,value pair, dump it. 
> Allow for regex matching on the value.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to