Repository: phoenix Updated Branches: refs/heads/4.x-HBase-0.98 69032041f -> b8f7fac10
PHOENIX-2353 Return exit status from bulk load Exit with the actual exit code from the ToolRunner when running the CsvBulkLoadTool. Contributed by Matt Kowalczyk. Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/b8f7fac1 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b8f7fac1 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b8f7fac1 Branch: refs/heads/4.x-HBase-0.98 Commit: b8f7fac10534302f89b6780192a377a065ae24d7 Parents: 6903204 Author: Gabriel Reid <[email protected]> Authored: Thu Oct 29 15:51:43 2015 +0100 Committer: Gabriel Reid <[email protected]> Committed: Thu Oct 29 15:53:10 2015 +0100 ---------------------------------------------------------------------- .../main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/b8f7fac1/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java index 022487e..20f05ff 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/mapreduce/CsvBulkLoadTool.java @@ -96,7 +96,8 @@ public class CsvBulkLoadTool extends Configured implements Tool { static final Option HELP_OPT = new Option("h", "help", false, "Show this help and quit"); public static void main(String[] args) throws Exception { - ToolRunner.run(new CsvBulkLoadTool(), args); + int exitStatus = ToolRunner.run(new CsvBulkLoadTool(), args); + System.exit(exitStatus); } /**
