Repository: phoenix Updated Branches: refs/heads/4.x-HBase-1.0 e796d88c3 -> b8c1d6cea
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/b8c1d6ce Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/b8c1d6ce Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/b8c1d6ce Branch: refs/heads/4.x-HBase-1.0 Commit: b8c1d6cea77b62841b147e6e92aa083c4bedcf23 Parents: e796d88 Author: Gabriel Reid <[email protected]> Authored: Thu Oct 29 15:51:43 2015 +0100 Committer: Gabriel Reid <[email protected]> Committed: Thu Oct 29 15:54:02 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/b8c1d6ce/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); } /**
