在 mysql 表中,有一個像這樣的 tinyint 型別,它只存盤 0 或 1 值,如is_mel:1.
is_mel | tinyint(1)
在 Elasticsearch 索引映射配置 is_mel 作為整數。
但是從logstash日志中,它顯示它將is_mel決議為布林值true或false "is_mel":true,這將導致以下錯誤,
"type"=>"mapper_parsing_exception",
"reason"=>"failed to parse field [is_mel] of type [integer] in document with id '392289'. Preview of field's value: 'true'"
uj5u.com熱心網友回復:
這實際上是一個功能,而不是一個錯誤:-)
您可以附加tinyInt1isBit=false到您的 JDBC URL 以禁用該行為
jdbc.url=jdbc:mysql://127.0.0.1:3306/testdb?tinyInt1isBit=false
^
|
add this
鏈接到相關的 MySQL 檔案
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/363498.html
上一篇:如果某個欄位存在,如何使用ingestnode管道將值從一個欄位復制到另一個欄位
下一篇:無法為資料流分配彈性搜索索引
