-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exploring streaming #133
Exploring streaming #133
Conversation
… like this could form the basis of easy streaming support :)
@@ -78,18 +86,82 @@ inline fun withSpark(builder: Builder, logLevel: SparkLogLevel = ERROR, func: KS | |||
KSparkSession(this).apply { | |||
sparkContext.setLogLevel(logLevel) | |||
func() | |||
sc.stop() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did we decide to remove it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup! in the RDD branch, will remove it here as well
… like this could form the basis of easy streaming support :)
…ing-streaming # Conflicts: # kotlin-spark-api/3.2/src/main/kotlin/org/jetbrains/kotlinx/spark/api/SparkHelper.kt
…eaming pair-functions, decided to go tuple-first instead of arities
…ode), new notation for entering KSparkSession scope inside streaming scope
# Conflicts: # kotlin-spark-api/3.2/src/main/kotlin/org/jetbrains/kotlinx/spark/api/Conversions.kt
…to normal "exploring-streaming" after vacation
Added DataStreamWriter forEachBatch helper added KotlinStatefulNetworkCount.kt cleaning up
added KotlinSqlNetworkWordCount.kt
@asm0dey What do you think of the notation like this? |
added KotlinSqlNetworkWordCount.kt
@asm0dey checkmarks all around, finally. Any other tests or checks I need to do before merging streaming support? |
As mentioned here: #122
This WIP pr creates a
withSparkStreaming() {}
function and KSparkStreaming scope.It makes it easier to work with Apache Spark Streaming since the boilerplate code is already handled.
See Streaming.kt for an example.