Flink SQL> create table hudi_flink_test1 (
uuid varchar(20)
,name varchar(10)
,age int
,ts timestamp(3)
,partition
varchar(20)
)
PARTITIONED BY (partition
)
with
( 'connector' = 'hudi'
,'path' = '/user/hhive/warehouse/hudi_flink/hudi_flink_test1'
);
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.sql.parser.impl.ParseException: Creating partitioned table is only allowed for HIVE dialect.
Flink SQL> create table hudi_flink_test1 (
uuid varchar(20)
,name varchar(10)
,age int
,ts timestamp(3)
)
with
( 'connector' = 'hudi'
,'path' = 'hdfs://hadoop102:8020/user/hhive/warehouse/hudi_flink/hudi_flink_test1'
);
[INFO] Table has been created.
Flink SQL> desc hudi_flink_test1;
[ERROR] Unknown or invalid SQL statement.
Flink SQL> select * from hudi_flink_test1;
[ERROR] Could not execute SQL statement. Reason:
org.apache.flink.table.api.NoMatchingTableFactoryException: Could not find a suitable table factory for 'org.apache.flink.table.factories.TableSourceFactory' in
the classpath.
Reason: Required context properties mismatch.
The following properties are requested:
connector=hudi
path=hdfs://hadoop102:8020/user/hhive/warehouse/hudi_flink/hudi_flink_test1
schema.0.data-type=VARCHAR(20)
schema.0.name=uuid
schema.1.data-type=VARCHAR(10)
schema.1.name=name
schema.2.data-type=INT
schema.2.name=age
schema.3.data-type=TIMESTAMP(3)
schema.3.name=ts
The following factories have been considered:
org.apache.flink.table.sources.CsvBatchTableSourceFactory
org.apache.flink.table.sources.CsvAppendTableSourceFactory
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
实时计算Flink版是阿里云提供的全托管Serverless Flink云服务,基于 Apache Flink 构建的企业级、高性能实时大数据处理系统。提供全托管版 Flink 集群和引擎,提高作业开发运维效率。