GitHub user artem-aliev opened a pull request:

    https://github.com/apache/tinkerpop/pull/555

    TINKERPOP-1271: Refactor SparkContext creation and handling of sc.stop()

        org.apache.tinkerpop.gremlin.spark.structure.Spark is a SparkContext 
holder for SparkGraphComputer.
        It was refactored to detect external stop calls and recreate 
SparkContext in that case.
        Context creation process was reordered to make all configuration 
options take effect.
        Spark.create() methods return created context now.
        The external stop also requires SPARK-18751 fix, that was integrated 
into Spark 2.1.
        By the way the refactoring and configuration loading part gives effect 
on all versions.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/artem-aliev/tinkerpop TINKERPOP-1271

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/tinkerpop/pull/555.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #555
    
----
commit 6bea8a562a7d2d2a940a5cb7db3f2a4ce09f3dac
Author: artemaliev <artem.aliev@gmail,com>
Date:   2017-02-02T12:15:04Z

    TINKERPOP-1271: Refactor SparkContext creation and handling of external 
sc.stop()
        org.apache.tinkerpop.gremlin.spark.structure.Spark is a SparkContext 
holder for SparkGraphComputer.
        It was refactored do detect external stop calls and recreate 
SparkContext in that case.
        Context creation process was reordered to make all configuration 
options to take effect.
        Spark.create() methods return created context now.
        The external stop also requires SPARK-18751 fix, that was integrated 
into Spark 2.1.
        By the way the refactoring and configuration loading part gives effect 
on all versions.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to