public class GiraphJob extends Object
Job for using Giraph in Hadoop.
Uses composition to avoid unwanted Job methods from exposure
to the user.| Constructor and Description |
|---|
GiraphJob(org.apache.hadoop.conf.Configuration configuration,
String jobName)
Constructor.
|
GiraphJob(GiraphConfiguration giraphConfiguration,
String jobName)
Constructor.
|
GiraphJob(String jobName)
Constructor that will instantiate the configuration
|
| Modifier and Type | Method and Description |
|---|---|
GiraphConfiguration |
getConfiguration()
Get the configuration from the internal job.
|
org.apache.hadoop.mapreduce.Job |
getInternalJob()
Be very cautious when using this method as it returns the internal job
of
GiraphJob. |
String |
getJobName() |
boolean |
run(boolean verbose)
Runs the actual graph application through Hadoop Map-Reduce.
|
void |
setJobName(String jobName) |
public GiraphJob(String jobName) throws IOException
jobName - User-defined job nameIOExceptionpublic GiraphJob(org.apache.hadoop.conf.Configuration configuration,
String jobName)
throws IOException
configuration - User-defined configurationjobName - User-defined job nameIOExceptionpublic GiraphJob(GiraphConfiguration giraphConfiguration, String jobName) throws IOException
giraphConfiguration - User-defined configurationjobName - User-defined job nameIOExceptionpublic String getJobName()
public void setJobName(String jobName)
public GiraphConfiguration getConfiguration()
public org.apache.hadoop.mapreduce.Job getInternalJob()
GiraphJob. This should only be used for methods that require
access to the actual Job, i.e. FileInputFormat#addInputPath().public final boolean run(boolean verbose)
throws IOException,
InterruptedException,
ClassNotFoundException
verbose - If true, provide verbose output, false otherwiseClassNotFoundExceptionInterruptedExceptionIOExceptionCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.