public class NutchConfiguration extends Object
Configuration
s that include Nutch-specific
resources.Modifier and Type | Method and Description |
---|---|
static org.apache.hadoop.conf.Configuration |
create()
Create a
Configuration for Nutch. |
static org.apache.hadoop.conf.Configuration |
create(boolean addNutchResources,
Properties nutchProperties)
Create a
Configuration from supplied properties. |
static String |
getUUID(org.apache.hadoop.conf.Configuration conf)
Retrieve a Nutch UUID of this configuration object, or null
if the configuration was created elsewhere.
|
public static final String UUID_KEY
public static String getUUID(org.apache.hadoop.conf.Configuration conf)
conf
- configuration instancepublic static org.apache.hadoop.conf.Configuration create()
Configuration
for Nutch. This will load the standard
Nutch resources, nutch-default.xml
and
nutch-site.xml
overrides.public static org.apache.hadoop.conf.Configuration create(boolean addNutchResources, Properties nutchProperties)
Configuration
from supplied properties.addNutchResources
- if true, then first nutch-default.xml
,
and then nutch-site.xml
will be loaded prior to applying the
properties. Otherwise these resources won't be used.nutchProperties
- a set of properties to define (or override)Copyright © 2014 The Apache Software Foundation