Differences between revisions 1 and 2
Revision 1 as of 2005-04-09 01:15:34
Size: 1571
Editor: 216
Revision 2 as of 2009-09-20 23:09:40
Size: 1571
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

bin/nutch inject

called java class


command line options

bin/nutch inject <db> (-urlfile <urlfile> | -dmozfile <dmozfile>) [-subset <subsetDenominator>] [-includeAdultMaterial] [-skew skew] [-noDmozDesc]

-urlfile <url_file>

Injects urls from a text file. Use a file with one url per line.

-dmozfile <dmoz_file>

Injects the urls from a dmoz content file. You can download the current content file from dmoz.org.

-subset <subsetDenominator>

Use this option if you want to inject only one of <subsetDenominator> urls. Injecting and fetching all urls from the open directory means to fetch over 4 million urls. Maybe for testing you would start with fewer urls. For example inject one out of every 4000 urls with -subset 4000, which whould be around 1000 urls injected. A random subset is selected: repeated calls with the same value will inject different urls.


By default urls from the adult part of the open directory will not be included.

-skew skew

The seed for the randomization used by subsetDenominator. For debugging.


If specified, the Open Directory description is not used as a link to the page.

config file options


The score of new pages added by the injector. 2.0 by default.


The number of days after each page injected is fetched that it should next be fetched. 30 by default.

-- MatthiasJaekle - 13 Mar 2004

InjectOptions (last edited 2009-09-20 23:09:40 by localhost)