Error while creating an Index


(karun pandranki) #1

Hi All,

I'm trying to create an index on dep_iv.json file which is of :

{"index":{"_index":"rv","_type":"dept","_id":795079 } }
{"RetailerGroup":"EuroBeauty","Retailer":8996,"Dept":"WOMEN FRAGRANCE","Error":0,"PPWeek":2447,"ModelName":"LinearRegression_LastYear","ModelDollars":14517.21,"ModelUnits":217.75,"ModelInventory":4.5,"ModelAveCost":9,"ModelItems":131.89,"Dollars":16505,"Units":123,"Inventory":5,"AveCost":10,"Items":59}

as you can see it has total of 795085 documents.

now, I;m creating the indexing using the curl:
curl -XPOST 'localXXX.abc.com:9200/_bulk?pretty' --data-binary @dep_iv.json

as soon as I hit enter it displays nothing and doesn't even throws any error ...

it was so strange !!!

please let me know what I'm doing it wrong here and also let me know the correct way of doing it...

P.S: I have created another index with 3000 docs.count and it was successful.

my node health:
ip heap.percent ram.percent cpu load_1m load_5m load_15m node.role master name
10.xxx.xx.xxx 59 69 0 0.00 0.06 0.06 mdi * xxxxxxx.xxx.com


(Mark Harwood) #2

This is probably too much data to attempt to send in a single bulk request. If so, break it into multiple manageable requests


(karun pandranki) #3

can you please guide me how do I create multiple requests ??

If you can share the relevant documentation, it would be much helpful

Thanks


(Mark Harwood) #4

curl -XPOST 'localXXX.abc.com:9200/_bulk?pretty' --data-binary @file1.json
curl -XPOST 'localXXX.abc.com:9200/_bulk?pretty' --data-binary @file2.json
curl -XPOST 'localXXX.abc.com:9200/_bulk?pretty' --data-binary @file3.json
...


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.