kingshard icon indicating copy to clipboard operation
kingshard copied to clipboard

Kingshard处理zabbix数据库

Open joew2016 opened this issue 8 years ago • 8 comments

配置: schema : nodes: [node1,node2] default: node1 shard: - db : zabbix table: history key: itemid nodes: [node2] type: hash locations: [4]

############################## 8589:20170212:224330.969 [Z3005] query failed: [1105] syntax error at position 91 [insert into history (itemid,clock,ns,value) values (25410,1486910610,861830188,99.923828); ] 8589:20170212:224332.975 [Z3005] query failed: [1105] syntax error at position 90 [insert into history (itemid,clock,ns,value) values (23252,1486910612,861655125,0.000000); ]

joew2016 avatar Feb 12 '17 14:02 joew2016

value是关键字,需要替换。

flike avatar Feb 13 '17 01:02 flike

那只有改Kingshard的代码了

joew2016 avatar Feb 13 '17 10:02 joew2016

如果要替换关键字需要改哪些代码

joew2016 avatar Feb 13 '17 12:02 joew2016

我将代码中的value换成ksvl后,编译完成还是会报错

joew2016 avatar Feb 13 '17 12:02 joew2016

zabbix中的好几个表都有value这个字段,更改zabbix的表结构和代码不太现实。作者能够帮忙解决这个value关键字的问题吗

joew2016 avatar Feb 13 '17 12:02 joew2016

我抽空研究一下。

flike avatar Feb 14 '17 01:02 flike

作者多费心了

joew2016 avatar Feb 15 '17 11:02 joew2016

这个估计修改下解析逻辑应该就好了,不过Zabbix,还有个坑需要填。。。。批量insert语句,同时多节点貌似不支持

welyss avatar Jun 14 '19 09:06 welyss