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
ab0f834d
Commit
ab0f834d
authored
12 years ago
by
seanm
Browse files
Options
Downloads
Patches
Plain Diff
adding spark.streaming.blockInterval property
parent
8ac9efba
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
docs/configuration.md
+7
-0
7 additions, 0 deletions
docs/configuration.md
streaming/src/main/scala/spark/streaming/dstream/NetworkInputDStream.scala
+1
-1
1 addition, 1 deletion
...n/scala/spark/streaming/dstream/NetworkInputDStream.scala
with
8 additions
and
1 deletion
docs/configuration.md
+
7
−
0
View file @
ab0f834d
...
@@ -253,6 +253,13 @@ Apart from these, the following properties are also available, and may be useful
...
@@ -253,6 +253,13 @@ Apart from these, the following properties are also available, and may be useful
applications). Note that any RDD that persists in memory for more than this duration will be cleared as well.
applications). Note that any RDD that persists in memory for more than this duration will be cleared as well.
</td>
</td>
</tr>
</tr>
<tr>
<td>
spark.streaming.blockInterval
</td>
<td>
200
</td>
<td>
Duration (milliseconds) of how long to batch new objects coming from network receivers.
</td>
</tr>
</table>
</table>
...
...
This diff is collapsed.
Click to expand it.
streaming/src/main/scala/spark/streaming/dstream/NetworkInputDStream.scala
+
1
−
1
View file @
ab0f834d
...
@@ -198,7 +198,7 @@ abstract class NetworkReceiver[T: ClassManifest]() extends Serializable with Log
...
@@ -198,7 +198,7 @@ abstract class NetworkReceiver[T: ClassManifest]() extends Serializable with Log
case
class
Block
(
id
:
String
,
iterator
:
Iterator
[
T
],
metadata
:
Any
=
null
)
case
class
Block
(
id
:
String
,
iterator
:
Iterator
[
T
],
metadata
:
Any
=
null
)
val
clock
=
new
SystemClock
()
val
clock
=
new
SystemClock
()
val
blockInterval
=
200L
val
blockInterval
=
System
.
getProperty
(
"spark.streaming.blockInterval"
,
"200"
).
toLong
val
blockIntervalTimer
=
new
RecurringTimer
(
clock
,
blockInterval
,
updateCurrentBuffer
)
val
blockIntervalTimer
=
new
RecurringTimer
(
clock
,
blockInterval
,
updateCurrentBuffer
)
val
blockStorageLevel
=
storageLevel
val
blockStorageLevel
=
storageLevel
val
blocksForPushing
=
new
ArrayBlockingQueue
[
Block
](
1000
)
val
blocksForPushing
=
new
ArrayBlockingQueue
[
Block
](
1000
)
...
...
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