writing_sink = df5.writeStream .format("json").option("format", "append") .option("path", ./output").option("checkpointLoca