@PublicApi @ThreadSafe public class CommandLineJob extends Job
Constructor and Description |
---|
CommandLineJob(String command,
JobConf jobConf)
Creates a new instance of
CommandLineJob . |
Modifier and Type | Method and Description |
---|---|
CommandLineJobInfo |
generateCommandLineJobInfo()
Generates the
CommandLineJobInfo for the command. |
String |
getCommand()
Gets the command.
|
boolean |
run()
Runs the job.
|
String |
toString() |
getJobConf
public CommandLineJob(String command, JobConf jobConf)
CommandLineJob
.command
- the command that can run in shelljobConf
- the job configurationpublic CommandLineJobInfo generateCommandLineJobInfo()
CommandLineJobInfo
for the command.CommandLineJobInfo
for RPCpublic String getCommand()
public boolean run()
Job
Copyright © 2023. All Rights Reserved.