[ https://issues.apache.org/jira/browse/FLINK-26854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17512158#comment-17512158 ]
jinfeng commented on FLINK-26854: --------------------------------- [~MingHao Liu] I don't think this is a problem with Flink, when writing doris using StreamLoad, you should use httpclient version 4.5.3 [https://github.com/apache/incubator-doris/blob/master/samples/stream_load/java/DorisStreamLoad.java] {code:java} <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpclient</artifactId> <version>4.5.3</version> </dependency> {code} You can directly depend on this version in your code, and do shade and relocation, Or you can just use doris connector https://github.com/apache/incubator-doris-flink-connector Also, please describe your problem in English. > 重定向数据库无法写入 > ---------- > > Key: FLINK-26854 > URL: https://issues.apache.org/jira/browse/FLINK-26854 > Project: Flink > Issue Type: Bug > Components: API / DataSet > Affects Versions: 1.14.4 > Environment: jdk1.8 > flink1.14 > flink-scala_2.11 > flink-streaming-scala_2.11 > > Reporter: liuminghao > Priority: Major > > 很荣幸可以使用flink最新的1.14版本,在便捷的同时也遇到一些问题,当我使用http想将数据保存进数据库(doirs),我的数据库有一次重定向,而在flink1.14中并不支持,重定向生成的请求头会被认为是一个错误从而终止任务,(flink1.14不支持自定义请求头,我现在只能暂时在重定向后删除他)代码: > PushContent2Doris.pushContent( , headers = null) -- This message was sent by Atlassian Jira (v8.20.1#820001)