|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hama.bsp.BSPJobClient
public class BSPJobClient
BSPJobClient is the primary interface for the user-job to interact with the BSPMaster. BSPJobClient provides facilities to submit jobs, track their progress, access component-tasks' reports/logs, get the BSP cluster status information etc.
Nested Class Summary | |
---|---|
static class |
BSPJobClient.TaskStatusFilter
|
Constructor Summary | |
---|---|
BSPJobClient()
|
|
BSPJobClient(org.apache.hadoop.conf.Configuration conf)
|
Method Summary | |
---|---|
void |
close()
Close the JobClient . |
JobStatus[] |
getAllJobs()
Gets the jobs that are submitted. |
ClusterStatus |
getClusterStatus(boolean detailed)
Get status information about the BSP cluster |
org.apache.hadoop.fs.FileSystem |
getFs()
Get a filesystem handle. |
org.apache.hadoop.fs.Path |
getSystemDir()
Grab the bspmaster system directory path where job-specific files are to be placed. |
void |
init(org.apache.hadoop.conf.Configuration conf)
|
JobStatus[] |
jobsToComplete()
Gets the jobs that are not completed and not failed. |
static void |
main(String[] args)
|
boolean |
monitorAndPrintJob(BSPJob job,
RunningJob info)
Monitor a job and print status in real-time as progress is made and tasks fail. |
int |
run(String[] args)
|
static void |
runJob(BSPJob job)
|
RunningJob |
submitJob(BSPJob job)
Submit a job to the BSP system. |
RunningJob |
submitJobInternal(BSPJob job)
|
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.hadoop.conf.Configurable |
---|
getConf, setConf |
Constructor Detail |
---|
public BSPJobClient(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public BSPJobClient()
Method Detail |
---|
public void init(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public void close() throws IOException
JobClient
.
IOException
public org.apache.hadoop.fs.FileSystem getFs() throws IOException
IOException
public JobStatus[] getAllJobs() throws IOException
JobStatus
for the submitted jobs.
IOException
public JobStatus[] jobsToComplete() throws IOException
JobStatus
for the running/to-be-run jobs.
IOException
public RunningJob submitJob(BSPJob job) throws FileNotFoundException, IOException
RunningJob
which can be used to track the running-job.
job
- the job configuration.
RunningJob
which can be used to track the
running-job.
FileNotFoundException
IOException
public RunningJob submitJobInternal(BSPJob job) throws IOException
IOException
public boolean monitorAndPrintJob(BSPJob job, RunningJob info) throws IOException, InterruptedException
job
- info
-
IOException
InterruptedException
public org.apache.hadoop.fs.Path getSystemDir()
public static void runJob(BSPJob job) throws FileNotFoundException, IOException
FileNotFoundException
IOException
public ClusterStatus getClusterStatus(boolean detailed) throws IOException
detailed
- if true then get a detailed status including the
groomserver names
ClusterStatus
.
IOException
public int run(String[] args) throws Exception
run
in interface org.apache.hadoop.util.Tool
Exception
public static void main(String[] args) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |