You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by im <im...@126.com> on 2023/08/30 06:27:56 UTC

Client has problem to access Doris behind NAT

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?

Re: Client has problem to access Doris behind NAT

Posted by "Jiafeng.Zhang" <zh...@gmail.com>.
Add me to WeChat:35926237 , I'll help you see, and by the way, pull you
into the community communication group


im <im...@126.com>于2023年8月31日 周四00:08写道:

> 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?

Re:Client has problem to access Doris behind NAT

Posted by Mingyu Chen <mo...@163.com>.
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:
morningman@apache.org





At 2023-08-31 00:09:24, "im" <im...@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?