我得到了答案,实际上问题是由于河流名称mongodb。我将名称更改为test_river。之后_status
,请求起作用_meta
了。_riverstatus
当我使用河流名称mongodb时,我能够获得所有其他请求的正确响应,例如搜索、河流创建的索引的状态等。
curl -XGET "localhost:9200/_river/test_river/_status"
结果:
{
"_index": "_river",
"_type": "test_river",
"_id": "_status",
"_version": 1,
"found": true,
"_source": {
"node": "",
"id": "pw3UUP7KQcuVSocDLlFdQw",
"name": "Starshine",
"transport_address": "inet[/10.3.0.53:9300]"
}
}
curl -XGET "localhost:9200/_river/test_river/_meta"
结果:
{
"_index": "_river",
"_type": "test_river",
"_id": "_meta",
"_version": 1,
"found": true,
"_source": {
"type": "mongodb",
"mongodb": {
"db": "test",
"collection": "employees"
},
"index": {
"name": "el_test",
"type": "employees"
}
}
}
curl -XGET "localhost:9200/_river/test_river/_riverstatus
结果:
{
"_index": "_river",
"_type": "test_river",
"_id": "_riverstatus",
"_version": 3,
"found": true,
"_source": {
"mongodb": {
"status": "RUNNING"
}
}
}