0

在我的fluentd配置中,我提供了以下 column_mapping:

<table login.*&gt;<br/>
        table 'login'
        column_mapping 'id:id,name:name,email:email,timestmp:timestmp' 
</table>

上面提到的所有列名都是区分大小写的。但在实际数据插入过程中,它给出了一个错误。错误信息是:

2021-11-20 12:53:03 +0000 [warn]: #0 未能创建模型。忽略记录:error_class=ActiveModel::UnknownAttributeError error="unknown attribute 'id' for Fluent::Plugin::SQLOutput ::BaseModel_1361409501::登录。” table="login" record="{"id":"febf2563-f5e9-4334-a412-6e25082a44ea","name":"testuser","email":"testuser@asd.com","timestmp":1637412777396 }"

fluentd但是与 MySQL 配置一起使用时,相同的操作也有效。

4

0 回答 0