【问题标题】:Check status of async optimize in SOLR standalone mode在 SOLR 独立模式下检查异步优化的状态
【发布时间】:2020-04-15 02:01:04
【问题描述】:

我在 SOLR (v7.6) 中使用async=1 运行了optimize 命令

curl http://localhost:8983/solr/core/update?optimize=true&async=1

如果我不使用 SolrCloud,我可以检查此异步请求的状态吗?

curl http://localhost:8983/solr/admin/collections?action=REQUESTSTATUS&requestid=1

{ 
  "responseHeader":{
    "status":400,
    "QTime":2},
  "error":{
    "metadata":[
      "error-class","org.apache.solr.common.SolrException",
      "root-error-class","org.apache.solr.common.SolrException"],
    "msg":"Solr instance is not running in SolrCloud mode.",
    "code":400}}

【问题讨论】:

    标签: solr


    【解决方案1】:

    当您不在云模式下运行时,必须针对 /admin/cores endpoint 发出请求:

    http://localhost:8983/solr/admin/cores?action=REQUESTSTATUS&requestid=1
    

    【讨论】:

    • 嗨@MatsLindh 我遇到了一个不同的错误:curl -g "http://localhost:8983/solr/core/update?optimize=true&async=1" -> No task found in running, completed or failed tasks
    • 您确定更新处理程序支持async 参数和请求ID?据我所知,它们可能仅在记录它们的 CoreAdmin 和 CollectionAdmin 操作端点内有效。
    猜你喜欢
    • 2021-08-18
    • 1970-01-01
    • 1970-01-01
    • 2021-03-21
    • 1970-01-01
    • 1970-01-01
    • 2017-03-31
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多