PUT my_index/my_type/my_id?pipeline=attachment
{
"data": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu=\n"
}
output-
{
"error": {
"root_cause": [
{
"type": "exception",
"reason": "java.lang.IllegalArgumentException: ElasticsearchParseException[Error parsing document in field [data]]; nested: IllegalArgumentException[Input byte array has wrong 4-byte ending unit];",
"header": {
"processor_type": "attachment"
}
}
]
can you please tell me what is wrong in this?
Hii @warkolm
I m trying to load pdf in elasticsearch using ingest-attachment plugin
PUT my_index/my_type/my_id?pipeline=attachment
{
"data": "JVBERi0xLjUNCiW1tbW1DQoxIDAgb2JqDQo8PC9UeXBlL0NhdGFsb2cvUGFnZXMgMiAwIFIvTGFu="
}
output-
{
"error": {
"root_cause": [
{
"type": "illegal_state_exception",
"reason": "There are no ingest nodes in this cluster, unable to forward request to an ingest node."
}
],
"type": "illegal_state_exception",
"reason": "There are no ingest nodes in this cluster, unable to forward request to an ingest node."
},
"status": 500
}
yes i read the documentation ,but i didn't get where to set that ingest.node in elasticsearch.yml.
I installed the ingest attachment plugin.
Thanks @warkolm I will try to resolve it.If any query there then i will get back to you.
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.