MapperParsingException[failed to parse] ]; nested: NotXContentException


(Riyaz A Shaikh) #1

Hi,

We have deleted and recreate it using new mapping. This was done in development environment to implement new features.

Unfortunately, after making these changes we were not able to push data to elastic cluster. We are using Elastic 2.2.

Error message:

[twitter][0] failed to execute bulk item (index) index {[twitter][post][], source[na]}
MapperParsingException[failed to parse]; nested: NotXContentException[Compressor detection can only be called on some xcontent bytes or compressed xcontent bytes];
at org.elasticsearch.index.mapper.DocumentParser.innerParseDocument(DocumentParser.java:163)
at org.elasticsearch.index.mapper.DocumentParser.parseDocument(DocumentParser.java:79)

Questions:

  1. Do I have PUT or POST the mapping?

  2. What would be the mapping url? http://localhost:9200///_mapping OR http://localhost:9200//_mapping/

Mapping JSON
{
"properties": {
"createdAt": {
"type": "date",
"format": "EE MMM d HH:mm:ss Z yyyy"
},
"deleted": {
"type": "boolean"
},
"extendedMediaEntities": {
"properties": {
"displayURL": {
"type": "string"
},
"expandedURL": {
"type": "string"
},
"id": {
"type": "string"
},
"mediaURL": {
"type": "string"
},
"mediaURLHttps": {
"type": "string"
},
"type": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"favoriteCount": {
"type": "long"
},
"geoLocation": {
"type": "geo_point"
},
"hashtagEntities": {
"properties": {
"text": {
"type": "string"
}
}
},
"idStr": {
"type": "string"
},
"inReplyToUser": {
"type": "string"
},
"lang": {
"type": "string"
},
"objectType": {
"type": "string"
},
"parentId": {
"type": "string"
},
"place": {
"properties": {
"boundingBoxCoordinates": {
"properties": {
"latitude": {
"type": "double"
},
"longitude": {
"type": "double"
}
}
},
"boundingBoxType": {
"type": "string"
},
"country": {
"type": "string"
},
"countryCode": {
"type": "string"
},
"fullName": {
"type": "string"
},
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"placeType": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"possiblySensitive": {
"type": "boolean"
},
"retweetCount": {
"type": "long"
},
"scopes": {
"properties": {
"placeIds": {
"type": "string"
}
}
},
"source": {
"properties": {
"sourceName": {
"type": "string"
},
"url": {
"type": "string"
}
}
},
"symbolEntities": {
"properties": {
"text": {
"type": "string"
}
}
},
"text": {
"type": "string"
}

}

}

We are using Elastic head plugin to monitor cluster, create & update index/mapping.

Support from group will be highly appreciated. I am fighting with this error since yesterday.

Thanks in advance.

Regards,
Riyaz


(system) #2