status=>400,
: action=>[
"index",
{
: _id=>nil,
: _index=>"mongodata",
: _type=>"mytype1",
: _routing=>nil
},
#
],
: response=>{
"index"=>{
"_index"=>"mongodata",
"_type"=>"mytype1",
"_id"=>"odSwBGEBmyc6bJc236_X",
"status"=>400,
"error"=>{
"type"=>"mapper_parsing_exception",
"reason"=>"Field [_id] is a metadata field and cannot be added inside a document. Use the index API request parameters."
}
}
}
}
It looks like the document you're trying to send to ES has a _id field which isn't allowed. This is probably caused by a mistake in your configuration.
I'm using DBSCHEMA Jdbc. i'm using following config file. My database has _id Column. So i used renamed this column in filter script.
My config file is following:
Exception when executing JDBC query {:exception=>#<Sequel::DatabaseError: Java::OrgLogstash::MissingConverterException: Missing Converter handling for full class name=org.bson.types.ObjectId, simple name=ObjectId>}
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.