Details

Description

The API documentations for DataStreamWriter.format states "Specifies the underlying output data source. Built-in options include "parquet", "json", etc." but when specifying "json" or "text" for the format. the following exception is thrown:
Exception in thread "main" java.lang.UnsupportedOperationException: Data source json does not support streamed writing
at org.apache.spark.sql.execution.datasources.DataSource.createSink(DataSource.scala:273)
at org.apache.spark.sql.streaming.DataStreamWriter.start(DataStreamWriter.scala:291)