Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/15806#discussion_r87036453
--- Diff:
examples/src/main/scala/org/apache/spark/examples/sql/streaming/StructuredNetworkWordCount.scala
---
@@ -68,6 +70,8 @@ object StructuredNetworkWordCount {
val query = wordCounts.writeStream
.outputMode("complete")
.format("console")
+ .option("checkpointLocation",
+ "file:///" + System.getProperty("java.io.tmpdir") +
"/spark_streaming_" + UUID.randomUUID())
--- End diff --
It's a bit nicer to use `Files.createTempDirectory` and call toURI if you
need to rather than assemble it directly. It will deal with making the dir
unique and all that.
---
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]