org.apache.nutch.util
Class NutchConfiguration

java.lang.Object
  extended by org.apache.nutch.util.NutchConfiguration

public class NutchConfiguration
extends Object

Utility to create Hadoop Configurations that include Nutch-specific resources.


Field Summary
static String CONFIG_DEFAULT
           
static String CONFIG_SITE
           
 
Method Summary
static Configuration addNutchResources(Configuration conf)
          Add the standard Nutch resources to Configuration.
static Configuration create(File f)
           
static Configuration create(List<File> confDirs)
          Creates a configuration based on a list of directories.
static Configuration createMerged(List<File> finalFiles)
          Creates a configuration based on a list of files/directories that are passed in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_DEFAULT

public static final String CONFIG_DEFAULT
See Also:
Constant Field Values

CONFIG_SITE

public static final String CONFIG_SITE
See Also:
Constant Field Values
Method Detail

create

public static Configuration create(File f)

create

public static Configuration create(List<File> confDirs)
Creates a configuration based on a list of directories. When trying to locate a file resource, this Configuration object will look in each directory in the list until it finds the file. If the file is not found, it is loaded from the classpath.

Parameters:
confDirs -
Returns:

createMerged

public static Configuration createMerged(List<File> finalFiles)
Creates a configuration based on a list of files/directories that are passed in. Files listed first will have priority. If a directory is specified, it is equivalent to loading dir/nutch-site.xml, dir/nutch-default.xml, dir/hadoop-site.xml, dir/hadoop-default.xml.

Parameters:
finalFiles -
Returns:

addNutchResources

public static Configuration addNutchResources(Configuration conf)
Add the standard Nutch resources to Configuration.



Copyright © 2007, 2012, Oracle and/or its affiliates. All rights reserved.