xintongsong commented on code in PR #25226: URL: https://github.com/apache/flink/pull/25226#discussion_r1765979509
########## flink-connectors/flink-connector-files/src/main/java/org/apache/flink/connector/file/sink/FileSink.java: ########## @@ -580,6 +584,11 @@ public T withRollingPolicy(CheckpointRollingPolicy<IN, String> rollingPolicy) { return self(); } + public T disableLocalWriting() { + this.writerConfig.put("fs.hdfs.no-local-write", "true"); Review Comment: It might be nicer to change this string literal into a static final constant of FileSink, and use the same constant in HadoopFileSystem. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org