Alex,
Following is the output of the curl call:
admin-slimmerk: cat tc.sh
curl -XPUT 'http://elastic:changeme@admin.ih.lucent.com:9200/twitter/tweet/1?pretty' -d ' {
"user": "kimchy",
"post_date": "2009-11-15T13:12:00",
"message": "Trying out Elasticsearch, so far so good?"
}'
admin-slimmerk: date
Mon Feb 27 14:20:40 EST 2017
admin-slimmerk: tc.sh
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "failed to parse, document is empty"
}
],
"type" : "mapper_parsing_exception",
"reason" : "failed to parse, document is empty"
},
"status" : 400
Oddly, the curl call that is failing is not producing any output to the elasticsearch.log file, though other commands are:
root@admin # tail elasticsearch.log
[2017-02-27T09:59:53,990][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:11:40,391][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:13:33,623][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:21:39,752][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:21:54,950][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:31:42,880][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:32:31,800][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T10:35:39,529][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [twitter] creating index, cause [auto(index api)], templates [], shards [5]/[1], mappings []
[2017-02-27T10:54:12,731][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [tsttop] creating index, cause [api], templates [], shards [5]/[1], mappings []
[2017-02-27T12:02:55,085][INFO ][o.e.c.m.MetaDataCreateIndexService] [fr6eY41] [myapp] creating index, cause [api], templates [], shards [5]/[1], mappings []
Note the timestamps in yellow.
Also, could this be happening because I am running on Solaris?
I just noticed that it is not one of the supported platforms. I decided to take a chance anyhow pursuing it as it is a Java app.
Thank you again for taking the time to look into this and get back to me.
Jeff Gajda
Software Engineer, Documentation Delivery
IP/Optical Networks, Nokia
Jeff.Gajda@nokia.commailto:Jeff.Gajda@alcatel-lucent.com