FANNG1 opened a new issue, #6309:
URL: https://github.com/apache/gravitino/issues/6309
### Version
main branch
### Describe what's wrong
Flink SQL client start failed for missing Paimon package
### Error message and/or stacktrace
```
Exception in thread "main" org.apache.flink.table.client.SqlClientException:
Failed to start the embedded sql-gateway.
at
org.apache.flink.table.client.SqlClient$EmbeddedGateway.create(SqlClient.java:274)
at org.apache.flink.table.client.SqlClient.start(SqlClient.java:108)
at
org.apache.flink.table.client.SqlClient.startClient(SqlClient.java:228)
at org.apache.flink.table.client.SqlClient.main(SqlClient.java:179)
Caused by: org.apache.flink.table.gateway.api.utils.SqlGatewayException:
Failed to start the endpoints.
at org.apache.flink.table.gateway.SqlGateway.start(SqlGateway.java:76)
at
org.apache.flink.table.client.SqlClient$EmbeddedGateway.create(SqlClient.java:270)
... 3 more
Caused by: org.apache.flink.table.api.TableException: Unexpected error when
trying to load service provider.
at
org.apache.flink.table.factories.FactoryUtil.discoverFactories(FactoryUtil.java:888)
at
org.apache.flink.table.factories.FactoryUtil.discoverFactory(FactoryUtil.java:587)
at
org.apache.flink.table.gateway.api.endpoint.SqlGatewayEndpointFactoryUtils.createSqlGatewayEndpoint(SqlGatewayEndpointFactoryUtils.java:65)
at org.apache.flink.table.gateway.SqlGateway.start(SqlGateway.java:69)
... 4 more
Caused by: java.util.ServiceConfigurationError:
org.apache.flink.table.factories.Factory: Provider
org.apache.gravitino.flink.connector.paimon.GravitinoPaimonCatalogFactory could
not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at
org.apache.flink.table.factories.FactoryUtil.discoverFactories(FactoryUtil.java:879)
... 7 more
Caused by: java.lang.NoClassDefFoundError:
org/apache/paimon/flink/FlinkCatalog
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2671)
at java.lang.Class.getConstructor0(Class.java:3075)
at java.lang.Class.newInstance(Class.java:412)
at
java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 10 more
Caused by: java.lang.ClassNotFoundException:
org.apache.paimon.flink.FlinkCatalog
at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
```
### How to reproduce
start Flink sql client with Gravitino flink connector
### Additional context
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]