Repository: incubator-s2graph
Updated Branches:
  refs/heads/master 7544a0565 -> 2ce86fa82


fix spark driver exit abnormally bug


Project: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/commit/77370726
Tree: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/tree/77370726
Diff: http://git-wip-us.apache.org/repos/asf/incubator-s2graph/diff/77370726

Branch: refs/heads/master
Commit: 77370726a919100c80fb86f425899e37aeafd2f0
Parents: 7544a05
Author: sandyskies <[email protected]>
Authored: Tue Mar 20 17:12:42 2018 +0800
Committer: sandyskies <[email protected]>
Committed: Tue Mar 20 17:12:42 2018 +0800

----------------------------------------------------------------------
 .../org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-s2graph/blob/77370726/s2jobs/src/main/scala/org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala
----------------------------------------------------------------------
diff --git 
a/s2jobs/src/main/scala/org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala
 
b/s2jobs/src/main/scala/org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala
index 79eca36..ba47d8a 100644
--- 
a/s2jobs/src/main/scala/org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala
+++ 
b/s2jobs/src/main/scala/org/apache/s2graph/s2jobs/loader/GraphFileGenerator.scala
@@ -38,6 +38,6 @@ object GraphFileGenerator {
       case "SPARK" => HFileGenerator.generate(sc, s2Config, input, options)
       case _ => throw new IllegalArgumentException("only supported type is 
MR/SPARK.")
     }
-    System.exit(0)
+    sc.stop()
   }
 }

Reply via email to