Package org.apache.nutch.util
Class NutchConfiguration
java.lang.Object
org.apache.nutch.util.NutchConfiguration
Utility to create Hadoop
Configurations that include Nutch-specific
resources.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Configurationcreate()Create aConfigurationfor Nutch.static Configurationcreate(boolean addNutchResources, Properties nutchProperties) Create aConfigurationfrom supplied properties.static StringgetUUID(Configuration conf) Retrieve a Nutch UUID of this configuration object, or null if the configuration was created elsewhere.
-
Field Details
-
UUID_KEY
- See Also:
-
-
Method Details
-
getUUID
Retrieve a Nutch UUID of this configuration object, or null if the configuration was created elsewhere.- Parameters:
conf- configuration instance- Returns:
- uuid or null
-
create
Create aConfigurationfor Nutch. This will load the standard Nutch resources,nutch-default.xmlandnutch-site.xmloverrides.- Returns:
- A populated
Configuration
-
create
Create aConfigurationfrom supplied properties.- Parameters:
addNutchResources- if true, then firstnutch-default.xml, and thennutch-site.xmlwill be loaded prior to applying the properties. Otherwise these resources won't be used.nutchProperties- a set of properties to define (or override)- Returns:
- A populated
Configuration
-