GitHub user okram opened a pull request:
https://github.com/apache/incubator-tinkerpop/pull/196
TINKERPOP-1072: Allow the user to set persistence options using
StorageLevel.valueOf()
https://issues.apache.org/jira/browse/TINKERPOP-1072
I always thought Spark had some configuration like `default.storageLevel`
and then when a user did `cache()` it would do that default. I was wrong.
`cache()` is always `MEMORY_ONLY`. I made it so you can specify the storage
level for both persisted RDDs and runtime job RDDs and thus now (internally)
use `persist(STORAGE_LEVEL)` where `MEMORY_ONLY` is the default.
Test cases, docs, and Spark integration tests pass.
VOTE +1.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/incubator-tinkerpop TINKERPOP-1072
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-tinkerpop/pull/196.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 #196
----
commit 4082a4a043b54c102f49f220b14e2644817e1222
Author: Marko A. Rodriguez <[email protected]>
Date: 2016-01-08T18:05:08Z
Allow the user to specify the persistence StorageLevel for both the
computed job graph and any PersistedOutputRDD data. Updated docs, example conf,
and added a test case that validates that persisted to SparkStorage is correct
as the configuration changes.
----
---
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 [email protected] or file a JIRA ticket
with INFRA.
---