beryllw commented on PR #3260:
URL: https://github.com/apache/flink-cdc/pull/3260#issuecomment-2076549059

   When I use paimon sink I encounter a bug.Looks like this is an incorrect 
attribute setting in Example yaml
   ```
   Exception in thread "main" java.lang.RuntimeException: failed to create or 
use paimon catalog
           at 
org.apache.flink.cdc.connectors.paimon.sink.PaimonDataSinkFactory.createDataSink(PaimonDataSinkFactory.java:72)
           at 
org.apache.flink.cdc.composer.flink.FlinkPipelineComposer.createDataSink(FlinkPipelineComposer.java:164)
           at 
org.apache.flink.cdc.composer.flink.FlinkPipelineComposer.compose(FlinkPipelineComposer.java:129)
           at org.apache.flink.cdc.cli.CliExecutor.run(CliExecutor.java:71)
           at org.apache.flink.cdc.cli.CliFrontend.main(CliFrontend.java:71)
   Caused by: java.lang.NullPointerException: Paimon 'warehouse' path must be 
set
           at 
org.apache.paimon.utils.Preconditions.checkNotNull(Preconditions.java:65)
           at 
org.apache.paimon.catalog.CatalogFactory.warehouse(CatalogFactory.java:55)
           at 
org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:83)
           at 
org.apache.paimon.catalog.CatalogFactory.createCatalog(CatalogFactory.java:66)
           at 
org.apache.paimon.flink.FlinkCatalogFactory.createPaimonCatalog(FlinkCatalogFactory.java:80)
           at 
org.apache.flink.cdc.connectors.paimon.sink.PaimonDataSinkFactory.createDataSink(PaimonDataSinkFactory.java:68)
           ... 4 more
   ```
   When I correct `metastore` and `warehouse ` to `catalog.properties.xxx`, 
it's OK.


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

Reply via email to