最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

java向es中寫入數(shù)據(jù)報錯org.elasticsearch.action.ActionReque問題

 更新時間:2023年11月22日 09:28:16   作者:要么出眾,要么出局  
這篇文章主要介紹了java向es中寫入數(shù)據(jù)報錯org.elasticsearch.action.ActionReque問題,具有很好的參考價值,希望對大家有所幫助,如有錯誤或未考慮完全的地方,望不吝賜教

java操作es寫入數(shù)據(jù)報錯

如下:

org.elasticsearch.action.ActionRequestValidationException: Validation Failed: 1: type is missing;2: type is missing;3: type is missing;4: type is missing;5: type is missing;6: type is missing;7: type is missing;8: type is missing;9: type is missing;10: type is missing;11: type is missing;12: type is missing;13: type is missing;14: type is missing;15: type is missing;16: type is missing;17: type is missing;18: type is missing;19: type is missing;20: type is missing;21: type is missing;22: type is missing;23: type is missing;24: type is missing;25: type is missing;26: type is missing;27: type is missing;28: type is missing;29: type is missing;30: type is missing;
    at org.elasticsearch.action.bulk.BulkRequest.validate(BulkRequest.java:614) ~[elasticsearch-6.8.6.jar:6.8.6]
    at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1730) ~[elasticsearch-rest-high-level-client-6.8.6.jar:6.8.6]

后分析查看報錯信息發(fā)現(xiàn),打印日志中使用的es版本為6.8.6(2.2.5.RELEASE版本默認使用的es版本),而我們使用的7.6.1中的一些調(diào)用方式,所以導致報錯。

解決

修改es版本為7.6.1

再次啟動,測試,ok問題解決。

總結(jié)

以上為個人經(jīng)驗,希望能給大家一個參考,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論

台州市| 保德县| 金华市| 河曲县| 綦江县| 霸州市| 原平市| 鄂温| 大兴区| 岢岚县| 九寨沟县| 太原市| 鄂托克前旗| 东兴市| 西盟| 怀安县| 互助| 南乐县| 应城市| 大城县| 赤城县| 云和县| 常熟市| 永平县| 徐水县| 渝中区| 石台县| 平安县| 万荣县| 宕昌县| 赤城县| 利辛县| 太原市| 金塔县| 柏乡县| 永福县| 句容市| 灌阳县| 海阳市| 瑞安市| 富川|