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