Hi All -
I am a newbie with ELasticsearch and I am encountering strange issue .
Specifications: I have a Json file of size: 0.5 GB
and I am using python 3.6 , ELasticsearch 6.3 version .
I am using parallel bulk call .
code:
try:
deque(helpers.parallel_bulk(es,read_json(filename),request_timeout=60,raise_on_error=True,raise_on_exception=True), maxlen=0)
except TransportError as e:
print(next(read_json(filename)))
issue#1: I am encountering message saying :
POST https://XXXXXXXXXXXXXXXXXX/_bulk [status:413 request:192.868s]
And encountering an exception and the job is failing /missing inserting some data .
How I can handle this one programatically?
How can i specify to print out/redirect the records that are getting dropped programatically?
issue#2:
when I am using another bigger Json file which is of 2 GB size ( which is larger compared to the previous one but exact same format) , it is not throwing any exceptions and inserting everything .
Am i missing something here ? Not sure what is the issue .
Any thoughts for me . I really appreciate all your time and help .