开发者社区> 问答> 正文

Print SQL connector无法正常使用怎么办?

目前使用flink sql的Print SQL connector,想要将查询的结果打印出来,结果报错: Caused by: org.apache.flink.table.api.NoMatchingTableFactoryException: Could not find a suitable table factory for 'org.apache.flink.table.factories.TableSinkFactory' in the classpath.

可以保证:HBase-connector是在lib包下存在的,是否我还需要在lib下添加什么依赖?

下面为执行的sql:

CREATE TABLE dimension ( rowKey STRING, cf ROW<age INT, area BIGINT>, tas BIGINT ) WITH ( 'connector.type' = 'hbase', 'connector.version' = '1.4.3', 'connector.table-name' = ’test', 'connector.write.buffer-flush.max-rows' = '10', 'connector.zookeeper.quorum' = ‘IP:port', 'connector.zookeeper.znode.parent' = '/hbase', );

CREATE TABLE print_table ( f0 STRING, f1 INT, f2 BIGINT, f3 BIGINT ) WITH ( 'connector' = 'print' );

insert into print_table select rowKey, cf.age, cf.area, tas from dimension*来自志愿者整理的flink邮件归档

展开
收起
游客sadna6pkvqnz6 2021-12-07 17:23:53 891 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
SQL Server 2017 立即下载
GeoMesa on Spark SQL 立即下载
原生SQL on Hadoop引擎- Apache HAWQ 2.x最新技术解密malili 立即下载