Hallo!PUT Index Mapping über curl Ergebnis ein Fehler (Content-Type Header-Fix funktioniert nicht)
I migrierten von 5 bis ES IHM 6, und ich habe versucht, die folgende Zuordnung mit curl wie üblich drücken:
"mappings" : {
"mee": {
"properties" : {
"ind1" : { "type" : "float" },
"ind2" : { "type" : "float" },
"ind3" : { "type" : "float" },
"time" : { "type" : "date", "format" : "HH:mm:ss" },
"name" : { "type" : "string" },
"timestamp" : { "type" : "date", "format" : "yyyy-MM-dd HH:mm:ss" },
}
}
mit dem folgenden Befehl:
$ curl -XPUT "http://localhost:9200/mee/" -d @config/ESConf/ESUpdate.conf
{ "Fehler": "Content-Type-Header [application/x-www-form-urlencoded] wird nicht unterstützt", "Status": 406}
Und als ein Header (wie pro required von ES 6) notwendig war, habe ich folgendes gemacht:
$ curl -XPUT "http://localhost:9200/mee/" -H 'Content-Type: application/json' -d @config/ESConf/ESUpdate.conf
{ "Fehler": { "Wurzel_Ursache": [{ "type": "not_x_content_exception" "Grund": "not_x_content_exception", "Grund":: "Compressor Erkennung nur auf einigen xcontent werden können genannt}], "Typ" "Compressor Erkennung kann nur auf einigen xcontent Bytes oder komprimierte xcontent Bytes genannt werden" Bytes oder komprimiert xcontent bytes "}," status ": 500}
Und jetzt bin ich völlig verloren ... Ich verstehe diesen Fehler einfach nicht ... Habe ich etwas falsch gemacht?
Vielen Dank!
Hoppla hat nur eine Klammer vergessen ... aber auf ES 5, als ich etwas falsch gemacht habe, hatte ich einen JSON Parse Fehler. Vielleicht liegt das an dieser Header-Anforderung auf ES 6 jetzt. Wie auch immer, danke! – toshiro92