Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/6271#discussion_r30668373
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/dstream/DStream.scala ---
@@ -217,53 +217,53 @@ abstract class DStream[T: ClassTag] (
case StreamingContextState.INITIALIZED =>
// good to go
case StreamingContextState.ACTIVE =>
- throw new SparkException(
+ throw new IllegalStateException(
"Adding new inputs, transformations, and output operations after
" +
"starting a context is not supported")
case StreamingContextState.STOPPED =>
- throw new SparkException(
+ throw new IllegalStateException(
"Adding new inputs, transformations, and output operations after
" +
"stopping a context is not supported")
}
}
private[streaming] def validateAtStart() {
- assert(rememberDuration != null, "Remember duration is set to null")
+ require(rememberDuration != null, "Remember duration is set to null")
- assert(
+ require(
!mustCheckpoint || checkpointDuration != null,
"The checkpoint interval for " + this.getClass.getSimpleName + " has
not been set." +
" Please use DStream.checkpoint() to set the interval."
)
- assert(
+ require(
checkpointDuration == null ||
context.sparkContext.checkpointDir.isDefined,
"The checkpoint directory has not been set. Please use
StreamingContext.checkpoint()" +
" or SparkContext.checkpoint() to set the checkpoint directory."
--- End diff --
Could you remove the second line "... or SparkContext.checkpoint() ..."
---
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.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]