Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
未创建索引文档时elasticserach jdbc河 - Fatal编程技术网

未创建索引文档时elasticserach jdbc河

未创建索引文档时elasticserach jdbc河,
Warning: implode(): Invalid arguments passed in /data/phpspider/zhask/webroot/tpl/detail.html on line 45
,,我按照本教程为文档elasticsearch编制索引 当我进行索引api调用(PUT)时 反应表明 { "_index": "_river", "_type": "myriver", "_id": "_meta", "_version": 1, "created": true } 当我得到它时,它只显示我在jdbc属性中发送的一个文档 curl -XGET _river/myriver/_meta { "_index": "_r

我按照本教程为文档elasticsearch编制索引

当我进行索引api调用(PUT)时

反应表明

{ 
    "_index": "_river", 
    "_type": "myriver", 
    "_id": "_meta", 
    "_version": 1, 
    "created": true 
} 
当我得到它时,它只显示我在jdbc属性中发送的一个文档

curl -XGET _river/myriver/_meta 
{ 
   "_index": "_river", 
   "_type": "myriver", 
   "_id": "_meta", 
   "_version": 1, 
   "found": true, 
   "_source": { 
      "type": "jdbc", 
      "jdbc": { 
         "strategy": "oneshot", 
         "driver": "com.mysql.jdbc.Driver", 
         "url": "jdbc:mysql://xx.xx.xxx.xxx:3306/portal", 
         "user": "username", 
         "password": "password", 
         "sql": "select item_id as _id, item_id as itemId, item_name as name from item limit 10" 
      }, 
      "index": { 
         "index": "myindex", 
         "type": "mytype" 
      } 
   } 
}'
在我的错误日志中

[2014-05-27 00:17:25,402][WARN ][river                    ] [Typhoid Mary] failed to get _meta from [jdbc]/[myriver] 
java.lang.NoSuchMethodError: org.xbib.elasticsearch.support.client.node.NodeClient.maxRequestWait(Lorg/elasticsearch/common/unit/TimeValue;)Lorg/xbib/elasticsearch/support/client/node/NodeClient; 
        at org.xbib.elasticsearch.plugin.feeder.AbstractFeeder.setClient(AbstractFeeder.java:205) 
        at org.xbib.elasticsearch.plugin.river.jdbc.JDBCRiver.start(JDBCRiver.java:74) 
        at org.elasticsearch.river.RiversService.createRiver(RiversService.java:148) 
        at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(RiversService.java:275) 
        at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(RiversService.java:269) 
        at org.elasticsearch.action.support.TransportAction$ThreadedActionListener$1.run(TransportAction.java:93) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
        at java.lang.Thread.run(Thread.java:724) 

查看提供的链接,看看是否可以从中获得更多信息-尝试执行
curl-XGEThttp://somedomain.com:9200/_river/myriver
并查看该类型中是否有文档。您使用的elasticsearch和elasticsearch jdbc river版本是什么?
[2014-05-27 00:17:25,402][WARN ][river                    ] [Typhoid Mary] failed to get _meta from [jdbc]/[myriver] 
java.lang.NoSuchMethodError: org.xbib.elasticsearch.support.client.node.NodeClient.maxRequestWait(Lorg/elasticsearch/common/unit/TimeValue;)Lorg/xbib/elasticsearch/support/client/node/NodeClient; 
        at org.xbib.elasticsearch.plugin.feeder.AbstractFeeder.setClient(AbstractFeeder.java:205) 
        at org.xbib.elasticsearch.plugin.river.jdbc.JDBCRiver.start(JDBCRiver.java:74) 
        at org.elasticsearch.river.RiversService.createRiver(RiversService.java:148) 
        at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(RiversService.java:275) 
        at org.elasticsearch.river.RiversService$ApplyRivers$2.onResponse(RiversService.java:269) 
        at org.elasticsearch.action.support.TransportAction$ThreadedActionListener$1.run(TransportAction.java:93) 
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
        at java.lang.Thread.run(Thread.java:724)