If you do the stream load using FE's ip, it actually does a 307 redirect to one 
of BE, and will return the BE's real ip, just like you see, the 
192.168.0.1:8040.
And in you case, this ip can not be accessed by client, right?


Currently, my suggestion is to execute the stream load by directly using BE's 
ip and port. For example, you can try using `10.10.10.10:8040` to see if it 
works







--

Best Regards
Mingyu Chen

Email:
morning...@apache.org





At 2023-08-31 00:09:24, "im" <imoni...@126.com> wrote:
>I've a configuration problem:
>Doris cluster is deployed in a private network. Its ports could be mapped to 
>an outside address via NAT. Topology:
>---------------------Topology--------------------------------------
>client --> Gateway(10.10.10.10) --> Doris Cluster(192.168.0.1/2/3)
>However, the client report an error with internal IP:
>Caused by: org.apache.doris.spark.exception.StreamLoadException: stream load 
>error: http request exception,load url : 
>http://192.168.0.1:8040/api/xxx/xxx/_stream_load?,failed to execute spark 
>streamload with label: 
>spark_streamload_20230830_135909_c71dcc3fe3354687841fbe87f325e85b
>Is NAT configuration supported by Doris?If yes,how should I do?

Reply via email to