I am facing mapper parsing exception, when i store data in elastic index. please help me to fix this issue
Error:
Log: 2020-08-11 20:50:31,423 ERROR SQL elastic insert error: ('7 document(s) failed to index.', [{'index': {'_index': 'md-sql-2020-08-11', '_type': 'sql', '_id': 'rwxu3nMBfY1jPbuvNUlW', 'status': 400, 'error': {'type': 'mapper_parsing_exception', 'reason': "failed to parse field [dbname] of type [date] in document with id 'rwxu3nMBfY1jPbuvNUlW'. Preview of field's value: 'dsfe'", 'caused_by': {'type': 'illegal_argument_exception', 'reason': 'failed to parse date field [dsfe] with format [strict_date_optional_time||epoch_millis]', 'caused_by': {'type': 'date_time_parse_exception', 'reason': 'Failed to parse with all enclosed parsers'}}}, 'data': {'dbname': 'dsfe', 'recovery_model': 'SIMPLE', 'state': 'ONLINE'}
somehow your mapping assumes the dbname field to be of a type date, which the value dsfe in it clearly is not. You have to recreate that index with a correct mapping where the field is very likely a string.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.