Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.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
<img src="//i.stack.imgur.com/RUiNP.png" height="16" width="18" alt="" class="sponsor tag img">elasticsearch 你能告诉我elasticsearch索引是否正在重新编制索引吗?_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch - Fatal编程技术网 elasticsearch 你能告诉我elasticsearch索引是否正在重新编制索引吗?,elasticsearch,elasticsearch" /> elasticsearch 你能告诉我elasticsearch索引是否正在重新编制索引吗?,elasticsearch,elasticsearch" />

elasticsearch 你能告诉我elasticsearch索引是否正在重新编制索引吗?

elasticsearch 你能告诉我elasticsearch索引是否正在重新编制索引吗?,elasticsearch,elasticsearch,我更改了一个映射,所以我使用kopf启动了一个重新索引。我如何知道何时完成重新索引 我已尝试搜索以下内容的输出: curl -GET http://example-elastic:9200/logstash-2015.03.31/_status?pretty curl -GET http://example-elastic:9200/_cat/indices curl -GET http://example-elastic:9200/_stats/indices 更新 我用kopf插件启动了r

我更改了一个映射,所以我使用kopf启动了一个重新索引。我如何知道何时完成重新索引

我已尝试搜索以下内容的输出:

curl -GET http://example-elastic:9200/logstash-2015.03.31/_status?pretty
curl -GET http://example-elastic:9200/_cat/indices
curl -GET http://example-elastic:9200/_stats/indices
更新

我用kopf插件启动了reindex。(从问题中删除了错误的索引命令)

更新2

我知道如何查看最后一个索引日期,但在我看来,似乎有更好的方法来判断它是否正在被索引

在OSX上工作

FOO=logstash-2015.03.31
curl -s -XGET "http://example-elastic:9200/l$FOO?pretty" | grep creation_date | sed  s'/[^0-9]//g' | date -j

Wed Apr  8 16:42:23 MDT 2015
更新3

我安装了该软件,以提供更多关于索引所需时间的反馈

 elasticsearch-reindex -f http://example-elastic:9200/logstash-2015.03.22/string -t http://example-elastic:9200
看起来索引过程需要很长时间。5分钟后,仍然是2%

...
reindexing [=-----------------------------] 165200/8492680(2%) 158.1 7971.1s
reindexing [=-----------------------------] 165300/8492680(2%) 158.5 7984.9s
reindexing [=-----------------------------] 165400/8492680(2%) 158.5 7981.0s
是否有办法从elasticsearch查看此进度?

查看,尤其是
/\u cat/nodes的输出?帮助
。您可能希望通过以下方式监视索引操作:


curl-XGET'http://localhost:9200/_cat/nodes?v&h=indexing.index_current“

你在使用插件吗?我检查的两个似乎与您的示例中的工作方式不同,当前的Elasticsearch文档对重新索引的描述也不同。是的,jkbkot我正在使用kopf,我已经删除了不正确的命令。