bugmenoway opened a new issue, #1888:
URL: https://github.com/apache/incubator-paimon/issues/1888

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Paimon version
   
   - paimon-flink-1.17-0.4.0-incubating.jar
   
   ### Compute Engine
   
   - flink 1.17.1
   - kafka 3.2.3 or 1.1.0
   - flink sql-client
   - hadoop 2.7.3
   
   ### Minimal reproduce step
   
   1. 添加依赖 jar
   
   | add jars |
   |--------|
   | paimon-flink-1.17-0.4.0-incubating.jar |
   | flink-connector-base-1.17.1.jar |
   | flink-connector-files-1.17.1.jar |
   | flink-connector-kafka-1.17.1.jar |
   | flink-sql-connector-kafka-1.17.0.jar |
   | flink-shaded-hadoop-2-uber-2.7.3.jar |
   | 其他官方 flink-1.17.1-bin-scala_2.12.tgz 安装包内lib自带jar |
   
   2.  启动集群,sql-client(略),设置paimon 仓库catalog
   ```typescript
   CREATE CATALOG my_catalog WITH (
       'type'='paimon',
       'warehouse'='hdfs:///tmp/paimon'
   );
   
   USE CATALOG my_catalog;
   ``` 
   3.  构建 paimon 表及 kakfa日志表
   ```typescript
   CREATE  TABLE word_10 (
       word STRING
   );
   
   CREATE  TABLE word_11 (
       word STRING
   );
   
   CREATE  TABLE word_12 (
       word STRING
   )   WITH (
      'log.system'='kafka',
      'kafka.bootstrap.servers'='host1:9092.host2:9092.host3:9092',
      'kafka.topic'='test12',
      'scan,startup.mode'='earliest-offset',
      'write-mode'='append-only'
   );
   ```
   4. 执行数据操作
   - opt1
   ```typescript
   SET 'execution.checkpointing.interval' = '10 s';
   SET 'sql-client.execution.result-mode' = 'tableau';
   SET 'execution.runtime-mode' = 'streaming';
   
   INSERT INTO TABLE word_12 VALUES('ca12412');
   ```
   
   - opt2
   ```typescript
   SET 'execution.checkpointing.interval' = '10 s';
   SET 'sql-client.execution.result-mode' = 'tableau';
   SET 'execution.runtime-mode' = 'streaming';
   
   SELECT * FROM  word_12;
   ```
   - opt3
   ```typescript
   SET 'execution.checkpointing.interval' = '10 s';
   SET 'sql-client.execution.result-mode' = 'tableau';
   SET 'execution.runtime-mode' = 'streaming';
   
   INSERT INTO TABLE word_11 SELECT * FROM  word_12;
   ```
   - opt4
   ```typescript
   SET 'execution.checkpointing.interval' = '10 s';
   SET 'sql-client.execution.result-mode' = 'tableau';
   SET 'execution.runtime-mode' = 'streaming';
   
   INSERT INTO TABLE word_10 VALUES('ca12492');
   INSERT INTO TABLE word_11 SELECT * FROM  word_10;
   SELECT * FROM  word_10;
   SELECT * FROM  word_11;
   ```
   
   ### What doesn't meet your expectations?
   
   以上操作中只有 opt4 成功了。
   对于log.system=kafka表的操作,只有ddl可以成功,其他相关的读写都会提示如下错误:
   ```shell
    Caused by: java.lang.NoSuchFiledRrror: callback
        at 
org.apache.paimon.flink.kafka.KafkaSinkFunction.open(KafkaSinkFunction.java:71)
        at 
org.apache.flink.api.common.function.util.FunctionUtils.openFunction(FunctionUtils.java:34)
        at 
org.apache.paimon.flink.sink.RowDataStoreWriteOperator.open(RowDataStoreWriteOperator.java:126)
        at 
org.apache.flink.streaming.runtime.tasks.RegularOperatorChain.initializeStateAndOperators(RegularOperatorChain.java:107)
        ...
   ``` 
   
   ### Anything else?
   
   - 该环境对flink 内 connector 为kafka的表,可以正常的读写,并且可以通过表的insert 
操作实现kafka数据管道的功能,将数据由topic1传输到topic2
   - 将paimon表的操作换为`RESET 'execution.checkpointing.interval';
   SET 'execution.runtime-mode' = 'batch';` ,对于paimon表读写操作及insert from 
select操作都可以正常实现。但是操作log.system=kafka的表仍报上文的错误
   
   1. **请问这个异常应该如何解决?是否可以通过修改配置文件或依赖实现适配**
   2. **哪里可以看到更详细的paimon相关文档?尤其是关于其基本使用方法,详细配置的部分**
   
   辛苦大佬解惑!!!
   ^_^
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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