spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sro...@apache.org
Subject spark git commit: [Spark-5717] [MLlib] add stop and reorganize import
Date Tue, 10 Feb 2015 17:37:47 GMT
Repository: spark
Updated Branches:
  refs/heads/branch-1.3 d6f31e0c7 -> b32f5535d


[Spark-5717] [MLlib] add stop and reorganize import

Trivial. add sc stop and reorganize import
https://issues.apache.org/jira/browse/SPARK-5717

Author: JqueryFan <firing@126.com>
Author: Yuhao Yang <hhbyyh@gmail.com>

Closes #4503 from hhbyyh/scstop and squashes the following commits:

7837a2c [JqueryFan] revert import change
2e85cc1 [Yuhao Yang] add stop and reorganize import

(cherry picked from commit 6cc96cf0c3ea87ab65d42a59725959d94701577b)
Signed-off-by: Sean Owen <sowen@cloudera.com>


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

Branch: refs/heads/branch-1.3
Commit: b32f5535dc6c59dccbe1bb6628dfe991ab123c04
Parents: d6f31e0
Author: JqueryFan <firing@126.com>
Authored: Tue Feb 10 17:37:32 2015 +0000
Committer: Sean Owen <sowen@cloudera.com>
Committed: Tue Feb 10 17:37:42 2015 +0000

----------------------------------------------------------------------
 .../main/java/org/apache/spark/examples/mllib/JavaLDAExample.java  | 1 +
 .../main/scala/org/apache/spark/examples/mllib/LDAExample.scala    | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/b32f5535/examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java b/examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java
index f394ff2..36207ae 100644
--- a/examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java
+++ b/examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java
@@ -71,5 +71,6 @@ public class JavaLDAExample {
       }
       System.out.println();
     }
+    sc.stop();
   }
 }

http://git-wip-us.apache.org/repos/asf/spark/blob/b32f5535/examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
----------------------------------------------------------------------
diff --git a/examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala b/examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
index 0e1b27a..11399a7 100644
--- a/examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
+++ b/examples/src/main/scala/org/apache/spark/examples/mllib/LDAExample.scala
@@ -159,7 +159,7 @@ object LDAExample {
       }
       println()
     }
-
+    sc.stop()
   }
 
   /**


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message