You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by Apache Wiki <wi...@apache.org> on 2008/01/25 05:17:17 UTC

[Nutch Wiki] Update of "AboutPlugins" by ViksitGaur

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change notification.

The following page has been changed by ViksitGaur:
http://wiki.apache.org/nutch/AboutPlugins

The comment on the change is:
Added a short note on pluginRepository

------------------------------------------------------------------------------
  
  In order to get Nutch to use a given plugin, you need to edit your conf/nutch-site.xml file and add the name of the plugin to the list of plugin.includes.
  
+ == Using a Plugin From The Command Line ==
+ 
+ Nutch ships with a number of plugins that include a main() method, and sample code to illustrate their use. These plugins can be used from the command line - a good way to start exploring the internal workings of each plugin.
+ 
+ To do so, you need to use the bin/nutch script from the $NUTCH_HOME directory,
+ 
+ $ bin/nutch plugin
+ Usage: PluginRepository pluginId className [arg1 arg2 ...]
+ 
+ As an example, if you wanted to execute the parse-html plugin, 
+ 
+ $ bin/nutch plugin parse-html org.apache.nutch.parse.html.HtmlParser filename.html
+ 
+ The PluginRepository is the name of the plugin itself, and the pluginId is the fully qualified name of the plugin class.
+ 
+ 
  <<< See also: WritingPluginExample
  
  <<< See also: HowToContribute