Bulk Indexing not working [resolved]


(Phrozyn) #1

Hi!

I've created mappings and have imported data successfully.

However when I go to elasticsearch using /_plugin/head/ on the browser tab and click on the index or it's types I created - nothing populates in the right pane.

{"create":{ "_index":"nexpose","_type":"exception","_id":"AVBOLQbukTljbbvdgEfa","_version":1,"status":201}
On the indices tab I show Index: nexpose Size: 20.1ki/20.1ki Docs: 4

Under Cluster Overview when I click on info index status I show it's started.
Logs show the following every time I click on one fo the types, it's referencing a logstash and the tutorial bank entries though, not the nexpose ones. Does this indicate corruption?

The events for bank and logstash and shakespeare show up fine, however the entries for nexpose do not even though they received status 201.

[2015-10-09 20:19:44,664][DEBUG][action.search.type ] [Gargantus] [logstash-2015.10.09][0], node[sCJKvgNvScmF-v-fFF0ShA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@6a51d8a] lastShard [true]
org.elasticsearch.search.SearchParseException: [logstash-2015.10.09][0]: query[ConstantScore(:)],from[0],size[50]: Parse Failure [Failed to parse source [{"fields":["_parent","_source"],"query":{"bool":{"must":[],"must_not":[],"should":[{"match_all":{}}]}},"from":0,"size":50,"sort":[{"_type":{"reverse":false}}],"facets":{},"version":true}]]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.elasticsearch.search.SearchParseException: [logstash-2015.10.09][0]: query[ConstantScore(:)],from[0],size[50]: Parse Failure [No mapping found for [_type] in order to sort on]
at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:214)
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:188)
at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)

[2015-10-09 20:19:44,665][DEBUG][action.search.type ] [Gargantus] [bank][1], node[sCJKvgNvScmF-v-fFF0ShA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@6a51d8a] lastShard [true]
org.elasticsearch.search.SearchParseException: [bank][1]: query[ConstantScore(:)],from[0],size[50]: Parse Failure [Failed to parse source [{"fields":["_parent","_source"],"query":{"bool":{"must":[],"must_not":[],"should":[{"match_all":{}}]}},"from":0,"size":50,"sort":[{"_type":{"reverse":false}}],"facets":{},"version":true}]]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:747)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:572)
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:544)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:306)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:231)
at org.elasticsearch.search.action.SearchServiceTransportAction$5.call(SearchServiceTransportAction.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.elasticsearch.search.SearchParseException: [bank][1]: query[ConstantScore(:)],from[0],size[50]: Parse Failure [No mapping found for [_type] in order to sort on]
at org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:214)
at org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:188)
at org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:731)


(Phrozyn) #2

Also, it did work a week ago - I blew it all away and redid it to ensure I had everything documented only to find the second time around that I have problems.


(Mark Walkom) #3

I'd check the mapping for your Logstash indices first.


(Phrozyn) #4

it was a stray comma, I couldn't see it so I had a friend review.

Thank you warkolm!


(system) #5