You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Apache Wiki <wi...@apache.org> on 2011/06/28 04:12:59 UTC
[Nutch Wiki] Update of "bin/nutch_crawl" by LewisJohnMcgibbney
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change notification.
The "bin/nutch_crawl" page has been changed by LewisJohnMcgibbney:
http://wiki.apache.org/nutch/bin/nutch_crawl?action=diff&rev1=10&rev2=11
Comment:
Changes reflect the Nutch 1.3 API however clarification is required to disambiguate [-showThreadID], -local and -ndfs <nameserver:port> as it is still unclear whether these are required or not
- crawl is an alias for org.apache.nutch.tools.!CrawlTool
+ Crawl is an alias for org.apache.nutch.crawl.!Crawl
- Perform complete crawling and indexing given a set of root urls.
+ This class performs a complete crawl given a set of root urls.
+ Usage:
+ {{{
- Usage: bin/nutch org.apache.nutch.tools.!CrawlTool (-local | -ndfs <nameserver:port>) <root_url_file> [-dir d] [-threads n] [-depth i] [-showThreadID]
+ bin/nutch org.apache.nutch.crawl.!Crawl (-local | -ndfs <nameserver:port>) <dir_with_url_files> [-threads n] [-depth i] [-showThreadID]
+ }}}
- Usage (version 0.8): bin/nutch org.apache.nutch.tools.!CrawlTool (-local | -ndfs <nameserver:port>) <dir_with_url_files> [-dir d] [-threads n] [-depth i] [-showThreadID]
+ <dir_with_url_files>: Contains text files with URL lists. This must be an existing directory. Example would be ${NUTCH_HOME}/urls
+ [-threads n]: This parameter enables you to choose how many threads Nutch should use when crawling.
-
- <dir_with_url_files>: contains text files with URL lists. This must be an existing directory.
-
- [-showThreadID]
[-depth i]: You can tell Nutch how deep it should crawl. If you don’t tell Nutch a value, it takes 5 as his standard parameter.
- For example if you say –depth 1, Nutch would only index the first level. Only if you say –depth 2 (or more) Nutch would make a link follow.
+ For example if you pass –depth 1 as the parameter, Nutch will only index the first level. If you say –depth 2 (or more) Nutch will follow this number of outlinks.
-
+ [-showThreadID]:
- [-dir d]: You can choose the directory, where Nutch should save the index.
- If you don’t choose a directory Nutch would create a own directory in the directory where you started the crawl.
- Example of a –dir parameter: -dir /usr/local/index/
-
- [-threads n]: You can choose, how many threads Nutch would use.
-local
-ndfs <nameserver:port>
-
-
CommandLineOptions