You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by jegonzal <gi...@git.apache.org> on 2014/05/11 00:56:52 UTC
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
GitHub user jegonzal opened a pull request:
https://github.com/apache/spark/pull/724
SPARK-1786: Edge Partition Serialization
This appears to address the issue with edge partition serialization. The solution appears to be just registering the `PrimitiveKeyOpenHashMap`. However I noticed that we appear to have forked that code in GraphX but retained the same name (which is confusing). I also renamed our local copy to `GraphXPrimitiveKeyOpenHashMap`. We should consider dropping that and using the one in Spark if possible.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/jegonzal/spark edge_partition_serialization
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/724.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 #724
----
commit d64e8d49ec43d2fd6bde519b8aeafb5cc4f1be61
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-20T03:09:24Z
Log current Pregel iteration
commit 62c7b7851301890814d523513fc5b67a0eb781ab
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-20T03:10:36Z
In Analytics, take PageRank numIter
commit d6d60e21bfc97fa39b25aa875c96ca9fc05a9973
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-20T03:08:57Z
In GraphLoader, coalesce to minEdgePartitions
commit e4fbd329aef85fe2c38b0167255d2a712893d683
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-13T02:18:37Z
Unify GraphImpl RDDs + other graph load optimizations
This commit makes the following changes:
1. *Unify RDDs to avoid zipPartitions.* A graph used to be four RDDs:
vertices, edges, routing table, and triplet view. This commit merges
them down to two: vertices (with routing table), and edges (with
replicated vertices).
2. *Avoid duplicate shuffle in graph building.* We used to do two shuffles
when building a graph: one to extract routing information from the edges
and move it to the vertices, and another to find nonexistent vertices
referred to by edges. With this commit, the latter is done as a side
effect of the former.
3. *Avoid no-op shuffle when joins are fully eliminated.* This is a side
effect of unifying the edges and the triplet view.
4. *Join elimination for mapTriplets.*
5. *Ship only the needed vertex attributes when upgrading the
triplet view.* If the triplet view already contains source attributes,
and we now need both attributes, only ship destination attributes rather
than re-shipping both. This is done in `ReplicatedVertexView#upgrade`.
commit ae361108c2885d173cdc73b3124ad7b40e9fdfdf
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-23T05:01:14Z
Fix style errors
commit 10b35969a24ff429b946b2f0384fa6eccd22d865
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-23T05:19:03Z
Clean up public API
commit 2a928b2b2efae1da5744fad7f49f7979f5bf72b7
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-25T10:08:27Z
Set locality wait
commit 0d3584c6552452ee836f66e0c4d67e4d967a2a4a
Author: Ankur Dave <an...@gmail.com>
Date: 2014-04-25T23:34:53Z
EdgePartition.size should be val
commit c88b269b84f2e3ed97d428f8696d7bc11a2d8644
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T04:59:56Z
Revert upgradeIterator to if-in-a-loop
commit 04d3ae563519e501b37d93c7496f74e9e11f395d
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T05:16:11Z
Convert implicit parameter to context bound
commit 75af062291666577a8a3b9c7c5549c98f5ed9fef
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T05:22:59Z
Add explicit return types
commit 57202e81cc89056d86d9d9de18173b7553300a97
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T05:27:59Z
Replace case with pair parameter
commit a04765c23a22450f0f9163250691b82adcd0f1f7
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T20:32:29Z
Remove unnecessary toOps call
commit 13ac8456f9b8f2cbb1b46b1450eb588cff21cc51
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T20:42:19Z
Merge remote-tracking branch 'apache-spark/master' into unify-rdds
Conflicts:
graphx/src/main/scala/org/apache/spark/graphx/EdgeRDD.scala
graphx/src/main/scala/org/apache/spark/graphx/Graph.scala
graphx/src/main/scala/org/apache/spark/graphx/GraphOps.scala
graphx/src/main/scala/org/apache/spark/graphx/VertexRDD.scala
graphx/src/main/scala/org/apache/spark/graphx/impl/EdgePartition.scala
commit 5ba8789c3c373c60b0f47258dc8e12b09938311a
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T21:03:55Z
Add GraphX upgrade guide from Spark 0.9.1
commit 4933e2e25cf5d3bee2c9701ec74eb82ac24c6ae5
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-07T21:43:41Z
Exclude RoutingTable from binary compatibility check
commit 33486038baac1ab8389097805d3f391b916b7096
Author: Joseph E. Gonzalez <jo...@gmail.com>
Date: 2014-05-10T01:54:56Z
Making EdgePartition serializable.
commit 78770571fbf5212025ef90d7675a80967227aba9
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-10T03:09:48Z
Add failing test for EdgePartition Kryo serialization
commit 32bf6a0ddba8a6e4b1ffd4ed21e8a861cd1dfcca
Author: Ankur Dave <an...@gmail.com>
Date: 2014-05-10T03:12:38Z
Disable reference tracking to fix serialization test
commit eaa5953093d2726e19377d0a5240a19d39dc4a17
Author: Joey <jo...@gmail.com>
Date: 2014-05-10T22:54:48Z
Merge pull request #1 from ankurdave/edge_partition_serialization
Add unit test for Kryo serialization of EdgePartition
----
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42864219
This was merged without ever passing jenkins. I've reverted this because it's causing all other PR's to break. We need to add an exclude file to the binary check.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42758414
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14875/
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42756914
Build triggered.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42758410
Build finished.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42756922
Build started.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:
https://github.com/apache/spark/pull/724
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42791672
btw as far as I can tell Kryo reference should always be disabled in the
spark repl. Should we just do that in the future?
On Sunday, May 11, 2014, Matei Zaharia <no...@github.com> wrote:
> Alright, then I'll merge this as is. You guys should add some docs in both
> the GraphX programming guide and GraphXKryoSerializer to mention that it's
> recommended to turn off reference tracking. Just send a separate PR for
> that. (Doc changes can also go in after 1.0 is officially cut, we can
> update the website).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/apache/spark/pull/724#issuecomment-42791443>
> .
>
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42757145
Merged build started.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by pwendell <gi...@git.apache.org>.
Github user pwendell commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42865046
To fix this we can just add the `org.apache.spark.graphx.util.collection.PrimitiveKeyOpenHashMap` class here:
https://github.com/apache/spark/blob/master/project/MimaBuild.scala#L77
Joey - mind re-opening this?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42791443
Alright, then I'll merge this as is. You guys should add some docs in both the GraphX programming guide and GraphXKryoSerializer to mention that it's recommended to turn off reference tracking. Just send a separate PR for that. (Doc changes can also go in after 1.0 is officially cut, we can update the website).
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42757141
Merged build triggered.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42790068
Alright, sounds good. @ankurdave or @rxin can you take a quick look?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by ankurdave <gi...@git.apache.org>.
Github user ankurdave commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42791250
This looks good to me. Re-enabling Kryo reference tracking will have a performance penalty, but we can easily fix that after the release.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42783134
@jegonzal should this be added in 1.0?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by jegonzal <gi...@git.apache.org>.
Github user jegonzal commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42787343
I would like to get it into 1.0 if possible. Otherwise, we could run into issues if the user persists graphs to disk or straggler mitigation is used. @ankurdave do you see any issues with trying to get this into 1.0?
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42758412
Merged build finished.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42758416
Refer to this link for build results: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/14877/
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by mateiz <gi...@git.apache.org>.
Github user mateiz commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42791799
I think we can warn if it's on or something. I wouldn't add code to disable it since we might be able to fix it to work there too.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by jegonzal <gi...@git.apache.org>.
Github user jegonzal commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42793347
My only concern is that I would prefer things work slowly than fail. With reference tracking disabled it is not possible to serialize user defined types from the spark-shell.
A second concern is that it will be difficult for the user to enable reference tracking if we disable it in the GraphX Kryo registrar.
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] spark pull request: SPARK-1786: Edge Partition Serialization
Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/724#issuecomment-42791693
Alternatively found a way to work around that in the repl so it can safely
turned on.
On Sunday, May 11, 2014, Matei Zaharia <no...@github.com> wrote:
> Alright, then I'll merge this as is. You guys should add some docs in both
> the GraphX programming guide and GraphXKryoSerializer to mention that it's
> recommended to turn off reference tracking. Just send a separate PR for
> that. (Doc changes can also go in after 1.0 is officially cut, we can
> update the website).
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/apache/spark/pull/724#issuecomment-42791443>
> .
>
---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---