簡體   English   中英

Elasticsearch索引在某些索引上停止

[英]Elasticsearch indexing stops on certain index

當我嘗試通過bulk_indexing()進程為其bulk_indexing()索引時,它會在某些索引上停止。 我在jvm.options更改了jvm.options並沒有幫助。

這是輸出:

 Product 489 indexed Product 490 indexed Product 491 indexed Product 492 indexed Product 493 indexed Product 494 indexed Product 495 indexed Product 496 indexed Product 497 indexed Product 498 indexed Product 2280 indexed POST http://localhost:9200/_bulk [status:N/A request:0.001s] Traceback (most recent call last): File "<console>", line 1, in <module> File "/code/products/documents.py", line 93, in bulk_indexing bulk(client=es, actions=(p.indexing() for p in models.Product.objects.all().iterator())) File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 257, in bulk for ok, item in streaming_bulk(client, actions, **kwargs): File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 192, in streaming_bulk raise_on_error, **kwargs) File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 99, in _process_bulk_chunk raise e File "/usr/local/lib/python3.6/site-packages/elasticsearch/helpers/__init__.py", line 95, in _process_bulk_chunk resp = client.bulk('\\n'.join(bulk_actions) + '\\n', **kwargs) File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/utils.py", line 76, in _wrapped return func(*args, params=params, **kwargs) File "/usr/local/lib/python3.6/site-packages/elasticsearch/client/__init__.py", line 1150, in bulk headers={'content-type': 'application/x-ndjson'}) File "/usr/local/lib/python3.6/site-packages/elasticsearch/transport.py", line 314, in perform_request status, headers_response, data = connection.perform_request(method, url, params, body, headers=headers, ignore=ignore, timeout=timeout) File "/usr/local/lib/python3.6/site-packages/elasticsearch/connection/http_urllib3.py", line 175, in perform_request raise ConnectionError('N/A', str(e), e) elasticsearch.exceptions.ConnectionError: ConnectionError(<urllib3.connection.HTTPConnection object at 0x7ffb0733bb38>: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7ffb0733bb38>: Failed to establish a new connection: [Errno 111] Connection refused) 

問題在於塊大小。 默認為500。 我增加了尺寸,解決了我的問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM