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
0f45347c
"api/R" did not exist on "4bcb7d676440dedff737a10c98c308d8f2ed1c96"
Commit
0f45347c
authored
12 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
More unit test fixes
parent
bce4089f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
core/src/test/scala/spark/MapOutputTrackerSuite.scala
+3
-0
3 additions, 0 deletions
core/src/test/scala/spark/MapOutputTrackerSuite.scala
core/src/test/scala/spark/storage/BlockManagerSuite.scala
+2
-3
2 additions, 3 deletions
core/src/test/scala/spark/storage/BlockManagerSuite.scala
with
5 additions
and
3 deletions
core/src/test/scala/spark/MapOutputTrackerSuite.scala
+
3
−
0
View file @
0f45347c
...
@@ -81,6 +81,9 @@ class MapOutputTrackerSuite extends FunSuite with LocalSparkContext {
...
@@ -81,6 +81,9 @@ class MapOutputTrackerSuite extends FunSuite with LocalSparkContext {
test
(
"remote fetch"
)
{
test
(
"remote fetch"
)
{
val
(
actorSystem
,
boundPort
)
=
AkkaUtils
.
createActorSystem
(
"spark"
,
"localhost"
,
0
)
val
(
actorSystem
,
boundPort
)
=
AkkaUtils
.
createActorSystem
(
"spark"
,
"localhost"
,
0
)
System
.
setProperty
(
"spark.driver.port"
,
boundPort
.
toString
)
// Will be cleared by LocalSparkContext
System
.
setProperty
(
"spark.hostPort"
,
"localhost:"
+
boundPort
)
val
masterTracker
=
new
MapOutputTracker
()
val
masterTracker
=
new
MapOutputTracker
()
masterTracker
.
trackerActor
=
actorSystem
.
actorOf
(
masterTracker
.
trackerActor
=
actorSystem
.
actorOf
(
Props
(
new
MapOutputTrackerActor
(
masterTracker
)),
"MapOutputTracker"
)
Props
(
new
MapOutputTrackerActor
(
masterTracker
)),
"MapOutputTracker"
)
...
...
This diff is collapsed.
Click to expand it.
core/src/test/scala/spark/storage/BlockManagerSuite.scala
+
2
−
3
View file @
0f45347c
...
@@ -33,11 +33,10 @@ class BlockManagerSuite extends FunSuite with BeforeAndAfter with PrivateMethodT
...
@@ -33,11 +33,10 @@ class BlockManagerSuite extends FunSuite with BeforeAndAfter with PrivateMethodT
val
serializer
=
new
KryoSerializer
val
serializer
=
new
KryoSerializer
before
{
before
{
val
hostname
=
Utils
.
localHostName
val
(
actorSystem
,
boundPort
)
=
AkkaUtils
.
createActorSystem
(
"test"
,
"localhost"
,
0
)
val
(
actorSystem
,
boundPort
)
=
AkkaUtils
.
createActorSystem
(
"test"
,
hostname
,
0
)
this
.
actorSystem
=
actorSystem
this
.
actorSystem
=
actorSystem
System
.
setProperty
(
"spark.driver.port"
,
boundPort
.
toString
)
System
.
setProperty
(
"spark.driver.port"
,
boundPort
.
toString
)
System
.
setProperty
(
"spark.hostPort"
,
hostname
+
"
:"
+
boundPort
)
System
.
setProperty
(
"spark.hostPort"
,
"localhost
:"
+
boundPort
)
master
=
new
BlockManagerMaster
(
master
=
new
BlockManagerMaster
(
actorSystem
.
actorOf
(
Props
(
new
spark
.
storage
.
BlockManagerMasterActor
(
true
))))
actorSystem
.
actorOf
(
Props
(
new
spark
.
storage
.
BlockManagerMasterActor
(
true
))))
...
...
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