Alexander Fedulov created FLINK-32030:
-----------------------------------------

             Summary: SQL Client gateway mode should accept URLs
                 Key: FLINK-32030
                 URL: https://issues.apache.org/jira/browse/FLINK-32030
             Project: Flink
          Issue Type: Improvement
          Components: Table SQL / Client, Table SQL / Gateway
    Affects Versions: 1.17.0
            Reporter: Alexander Fedulov
            Assignee: Alexander Fedulov


Currently, the _--endpoint_ parameter has to be specified in the 
_InetSocketAddress_  format, i.e. _hostname:port._ While this works fine for 
basic use cases, it does not support the placement of the gateway behind a 
proxy or using an Ingress for routing to a specific Flink cluster based on the 
URL path.  I.e. it expects 
_[some.hostname.com:9001|http://some.hostname.com:9001/]_  to directly serve 
requests on _[some.hostname.com:9001/v1|http://some.hostname.com:9001/v1]_ . 
Mapping to a non-root location, i.e. 
_[some.hostname.com:9001/flink-clusters/sql-preview-cluster-1/v1|http://some.hostname.com:9001/flink-clusters/sql-preview-cluster-1/v1]_
  is not supported.
 
Since the client talks to the gateway via its REST endpoint, the right format 
for the _--endpoint_  parameter is {_}URL{_}, not _InetSocketAddress_ .  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to