简体   繁体   English

“ IndexMissingException [[jdbc]丢失]”,“状态”:404

[英]“IndexMissingException[[jdbc] missing]”, “status” : 404

i want to index and search mysql database using elastic search & I followed this tutorial 我想使用弹性搜索索引和搜索mysql数据库,我遵循了本教程

elasticsearch-river-jdbc elasticsearch-river-jdbc

At first i downloaded elastic search and installed river-jdbc in its plugin folder. 首先,我下载了弹性搜索并将river-jdbc安装在其插件文件夹中。 then added mysql-jdbc inside ES_HOME/elasticsearch-0.90.1/plugins/river-jdbc/ Then started elasticsearch and Started another terminal window, and created a new JDBC river with name my_jdbc_river with this curl command 然后在ES_HOME / elasticsearch-0.90.1 / plugins / river-jdbc /中添加mysql-jdbc,然后启动elasticsearch并启动另一个终端窗口,并使用以下curl命令创建一个名为my_jdbc_river的新JDBC河

curl -XPUT 'localhost:9200/_river/my_jdbc_river/_meta' -d '{
    "type" : "jdbc",
    "jdbc" : {
        "driver" : "com.mysql.jdbc.Driver",
        "url" : "jdbc:mysql://localhost:3306/bablool",
        "user" : "root",
        "password" : "babloo",
        "sql" : "select * from details"
    },
    "index" : {
        "index" : "jdbc",
        "type" : "jdbc"
    }
}'

then when I run this command: curl -XGET 'localhost:9200/jdbc/jdbc/_search?pretty&q=*' 然后当我运行此命令时: curl -XGET 'localhost:9200/jdbc/jdbc/_search?pretty&q=*'

and im getting following error: 和即时通讯收到以下错误:

"error": "IndexMissingException[[jdbc] missing]", "status" : 404

plz help me.... 请帮助我。

I'm bumped into the same error following the tutorial mentioned in the question... after reading again the documentation, I noticed that I forgot to restart the ES after install the river_jdbc plugin. 在问题中提到的教程之后,我遇到了同样的错误...在再次阅读文档后,我注意到在安装river_jdbc插件后我忘记重新启动ES。

This tutorial is also interesting if you starting to learn about indexing SQL databases. 如果您开始学习索引SQL数据库,那么本教程也很有趣。

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

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