我尝试在 R&R 中索引 200 万个文档,但在大约 83 万个文档后出现 HTTP403 错误。我一次发送带有 10000 个文档的“更新 API”请求,并通过我的自定义工具重复操作。我成功了大约 83 万,所以我不认为我弄错了基本身份验证凭据。
> 2017-01-05T22:51:23.289Z - error: addDocs error: SolrError:
> {"solrErrorMessage":{"message":"WRRCSH001: The resource with path
> [jawiki_collection/update/json], parameters [{DD=[1],
> search_in_description=[1], sourceNode=[231772, 244365], hl=[ja],
> contentPK=[18393008, 17796905], .... SESSIONKEY=[1410347259768]}],
> requested via method [POST] has been blocked."}}
>
> Request URL:
> http://gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/xxx/solr/jawiki_collection/update/json?&wt=json
> Request method: POST Status code: 403 - Forbidden
我的集群资源似乎没有资源问题。磁盘和内存中有可用空间。
curl -u "xxx:xxx" "https:
//gateway.watsonplatform.net/retrieve-and-rank/api/v1/solr_clusters/sc902e45b6_e043_4354_9922_30efd714bd80/stats"
{"disk_usage":{"used_bytes":4687192808,"total_bytes":240518168576,"used":"4.3653 GB","total":"224 GB","percent_used":1.9487894971721937},"memory_usage
":{"used_bytes":10471399424,"total_bytes":29360128000,"used":"9.7523 GB","total":"27.344 GB","percent_used":35.66537388392857}}
你能教我这个 HTTP403 错误的原因是什么以及如何解决它吗?