Spark-Doris-Connecter实战

在尝试使用Spark连接Doris时,用户遇到了一个错误:UnrecognizedPropertyException,该异常指出Schema类中无法识别fieldkeysType。错误响应包含了一个Doris表的schema信息。更新到最新版本的Spark-DorisConnector(1.1.0)解决了此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#Spark-Doris-Connecter实战
报错


23/02/03 19:49:47 ERROR SchemaUtils: Doris FE's response cannot map to schema. res: {"keysType":"UNIQUE_KEYS","properties":[{"name":"full_type_id","aggregation_type":"","comment":"全目录ID","type":"VARCHAR"},{"name":"full_type_name","aggregation_type":"REPLACE","comment":"全目录名称","type":"VARCHAR"},{"name":"first_type_id","aggregation_type":"REPLACE","comment":"一级目录ID","type":"VARCHAR"},{"name":"first_type_name","aggregation_type":"REPLACE","comment":"一级目录名称","type":"VARCHAR"},{"name":"second_type_id","aggregation_type":"REPLACE","comment":"二级目录ID","type":"VARCHAR"},{"name":"second_type_name","aggregation_type":"REPLACE","comment":"二级目录名称","type":"VARCHAR"},{"name":"third_type_id","aggregation_type":"REPLACE","comment":"三级目录ID","type":"VARCHAR"},{"name":"third_type_name","aggregation_type":"REPLACE","comment":"三级目录名称","type":"VARCHAR"},{"name":"fourth_type_id","aggregation_type":"REPLACE","comment":"四级目录ID","type":"VARCHAR"},{"name":"fourth_type_name","aggregation_type":"REPLACE","comment":"四级目录名称","type":"VARCHAR"}],"status":200}
org.codehaus.jackson.map.exc.UnrecognizedPropertyException: Unrecognized field "keysType" (Class org.apache.doris.spark.rest.models.Schema), not marked as ignorable


使用最新版本的jar会好

        <dependency>
            <groupId>org.apache.doris</groupId>
            <artifactId>spark-doris-connector-2.3_2.11</artifactId>
            <version>1.1.0</version>
        </dependency>
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值