Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
94f05683
Commit
94f05683
authored
13 years ago
by
Ismael Juma
Browse files
Options
Downloads
Patches
Plain Diff
Replace deprecated `first` with `head`.
parent
26000af4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/src/main/scala/spark/CoGroupedRDD.scala
+2
-2
2 additions, 2 deletions
core/src/main/scala/spark/CoGroupedRDD.scala
core/src/main/scala/spark/DAGScheduler.scala
+1
-1
1 addition, 1 deletion
core/src/main/scala/spark/DAGScheduler.scala
with
3 additions
and
3 deletions
core/src/main/scala/spark/CoGroupedRDD.scala
+
2
−
2
View file @
94f05683
...
...
@@ -26,7 +26,7 @@ class CoGroupAggregator extends Aggregator[Any, Any, ArrayBuffer[Any]] (
)
class
CoGroupedRDD
[
K
](
rdds
:
Seq
[
RDD
[(
_
,
_
)]],
part
:
Partitioner
)
extends
RDD
[(
K
,
Seq
[
Seq
[
_
]])](
rdds
.
first
.
context
)
with
Logging
{
extends
RDD
[(
K
,
Seq
[
Seq
[
_
]])](
rdds
.
head
.
context
)
with
Logging
{
val
aggr
=
new
CoGroupAggregator
override
val
dependencies
=
{
...
...
@@ -45,7 +45,7 @@ extends RDD[(K, Seq[Seq[_]])](rdds.first.context) with Logging {
}
@transient
val
splits_
:
Array
[
Split
]
=
{
val
firstRdd
=
rdds
.
first
val
firstRdd
=
rdds
.
head
val
array
=
new
Array
[
Split
](
part
.
numPartitions
)
for
(
i
<-
0
until
array
.
size
)
{
array
(
i
)
=
new
CoGroupSplit
(
i
,
rdds
.
zipWithIndex
.
map
{
case
(
r
,
j
)
=>
...
...
This diff is collapsed.
Click to expand it.
core/src/main/scala/spark/DAGScheduler.scala
+
1
−
1
View file @
94f05683
...
...
@@ -237,7 +237,7 @@ private trait DAGScheduler extends Scheduler with Logging {
if
(
stage
.
shuffleDep
!=
None
)
{
mapOutputTracker
.
registerMapOutputs
(
stage
.
shuffleDep
.
get
.
shuffleId
,
stage
.
outputLocs
.
map
(
_
.
first
).
toArray
)
stage
.
outputLocs
.
map
(
_
.
head
).
toArray
)
}
updateCacheLocs
()
val
newlyRunnable
=
new
ArrayBuffer
[
Stage
]
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment