public class InjectorJob extends NutchTool implements org.apache.hadoop.util.Tool
Modifier and Type | Class and Description |
---|---|
static class |
InjectorJob.UrlMapper |
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
static String |
nutchFetchIntervalMDName
metadata key reserved for setting a custom fetchInterval for a specific URL
|
static String |
nutchScoreMDName
metadata key reserved for setting a custom score for a specific URL
|
currentJob, currentJobNum, numJobs, results, status
Constructor and Description |
---|
InjectorJob() |
InjectorJob(org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
inject(org.apache.hadoop.fs.Path urlDir) |
static void |
main(String[] args) |
Map<String,Object> |
run(Map<String,Object> args)
Runs the tool, using a map of arguments.
|
int |
run(String[] args) |
getProgress, getStatus, killJob, stopJob
public static final org.slf4j.Logger LOG
public static String nutchScoreMDName
public static String nutchFetchIntervalMDName
public InjectorJob()
public InjectorJob(org.apache.hadoop.conf.Configuration conf)
public Map<String,Object> run(Map<String,Object> args) throws Exception
NutchTool
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
Copyright © 2015 The Apache Software Foundation