简体   繁体   English

从sql迁移到Elastic Search后如何使用sql数据验证Elastic Search数据

[英]How to validate elastic search data with sql data after migration from sql to elastic search

Anyone who have worked on elastic search. 从事弹性搜索的任何人。 need input as mentioned in subject. 需要输入主题中提到的内容。 I have one requirement in which sql data is migrated to elastic Search now there is ton of data so I can not check each and every field manually. 我有一个要求,即将sql数据迁移到Elastic Search中,现在有大量数据,因此我无法手动检查每个字段。 So what is best way to test migrated data with sql. 那么用sql测试迁移数据的最佳方法是什么。

Try to implement 2 scripts which will result exactly the same output from mysql and elasticsearch. 尝试实现2个脚本,它们将导致mysql和elasticsearch的输出完全相同。 Make sure, formatting, ordering matches. 确保格式,顺序匹配。 At the end you should be able to diff the files or do md5sum on them to compare. 最后,您应该能够比较文件或对它们执行md5sum进行比较。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM