Dongming WU created FLINK-28914:
-----------------------------------

             Summary: Could not find any factories that implement
                 Key: FLINK-28914
                 URL: https://issues.apache.org/jira/browse/FLINK-28914
             Project: Flink
          Issue Type: Bug
          Components: Table SQL / Gateway
    Affects Versions: 1.16.0
            Reporter: Dongming WU
             Fix For: 1.16.0


2022-08-11 11:09:53,135 ERROR org.apache.flink.table.gateway.SqlGateway         
           [] - Failed to start the endpoints.

org.apache.flink.table.api.ValidationException: Could not find any factories 
that implement 
'org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactory' in the 
classpath.

-----------------------------------------------------

I packaged Flink-Master and tried to start sql-gateway, but some problems arise.

I found tow problem with Factory under resources of flink-sql-gateway module.

META-INF.services should not be a folder name, ti should be ... 
/META-INF/services/... 

The 

`` org.apache.flink.table.gateway.rest.SqlGatewayRestEndpointFactory ``  in the 
org.apache.flink.table.factories.Factory file should be 

``  org.apache.flink.table.gateway.rest.util.SqlGatewayRestEndpointFactory `` . 



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

Reply via email to