.writeAsText("/tmp/md_streaming.txt", FileSystem.WriteMode.OVERWRITE);
Flink 1.5This streaming data written to a fileval stream = env
.addSource(new FlinkKafkaConsumer09[String]("md", new SimpleStringSchema(), properties))
.writeAsText("/tmp/md_streaming.txt")
env.execute("Flink Kafka Example")The error statesCaused by: java.io.IOException: File or directory /tmp/md_streaming.txt already exists. Existing files and directories are not overwritten in NO_OVERWRITE mode. Use OVERWRITE mode to overwrite existing files and directories.Is there any append in writeAsText? I tried OVERWRITE but did not work.ThanksDr Mich Talebzadeh
LinkedIn https://www.linkedin.com/
profile/view?id= AAEAAAAWh2gBxianrbJd6zP6AcPCCd OABUrV8Pw
http://talebzadehmich.
wordpress.com
Disclaimer: Use it at your own risk. Any and all responsibility for any loss, damage or destruction of data or any other property which may arise from relying on this email's technical content is explicitly disclaimed. The author will in no case be liable for any monetary damages arising from such loss, damage or destruction.
Free forum by Nabble | Edit this page |