Exception in thread “main” org.apache.solr.common.SolrException: Bad Request
Bad Request
request: http://54.254.192.149:8983/solr/feeddata/update?wt=javabin&version=2
Solution:
Check Solr logs.
INFO - 2014-11-07 07:04:42.985; org.apache.solr.update.processor.LogUpdateProcessor; [feeddata] webapp=/solr path=/update params={wt=javabin&version=2} {} 0 1 ERROR - 2014-11-07 07:04:42.985; org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: Document is missing mandatory uniqueKey field: id
Here it is:
Document is missing mandatory uniqueKey field: id
Another instance:
INFO - 2014-11-07 07:13:21.684; org.apache.solr.update.processor.LogUpdateProcessor; [feeddata] webapp=/solr path=/update params={wt=javabin&version=2} {} 0 1 ERROR - 2014-11-07 07:13:21.685; org.apache.solr.common.SolrException; org.apache.solr.common.SolrException: ERROR: [doc=0] unknown field 'win_hour'
Takeaway : Logs are very helpful. Do have a look before searching else where.