HBASE-21238 MapReduceHFileSplitterJob#run shouldn't call System.exit

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Artem Ervits 2018-10-15 14:53:33 -04:00 committed by tedyu
parent 4a043126b1
commit 07e2247d2e
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ public class MapReduceHFileSplitterJob extends Configured implements Tool {
public int run(String[] args) throws Exception {
if (args.length < 2) {
usage("Wrong number of arguments: " + args.length);
System.exit(-1);
return -1;
}
Job job = createSubmittableJob(args);
int result = job.waitForCompletion(true) ? 0 : 1;