Repository: phoenix
Updated Branches:
  refs/heads/master 72633b9d4 -> c26cce503


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/c26cce50
Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/c26cce50
Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/c26cce50

Branch: refs/heads/master
Commit: c26cce5038971a01a4864e473ec249f78ebfa892
Parents: 72633b9
Author: Gabriel Reid <gabri...@ngdata.com>
Authored: Thu Oct 29 15:51:43 2015 +0100
Committer: Gabriel Reid <gabri...@ngdata.com>
Committed: Thu Oct 29 15:54:52 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/c26cce50/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);
     }
 
     /**

Reply via email to