I get this error when I add mapping for attachments
org.elasticsearch.index.mapper.MapperParsingException: No handler for
type [attachment] declared on field [file]
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parseProperties(ObjectMapper.java:254)
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parse(ObjectMapper.java:217)
at
org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:
162)
at
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:
269)
at org.elasticsearch.cluster.metadata.MetaDataMappingService
$4.execute(MetaDataMappingService.java:302)
at org.elasticsearch.cluster.service.InternalClusterService
$2.run(InternalClusterService.java:211)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
I get this error when I add mapping for attachments
org.elasticsearch.index.mapper.MapperParsingException: No handler for
type [attachment] declared on field [file]
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parseProperties(ObjectMapper.java:254)
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parse(ObjectMapper.java:217)
at
org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperParser.java:
162)
at
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:
269)
at org.elasticsearch.cluster.metadata.MetaDataMappingService
$4.execute(MetaDataMappingService.java:302)
at org.elasticsearch.cluster.service.InternalClusterService
$2.run(InternalClusterService.java:211)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
I get this error when I add mapping for attachments
org.elasticsearch.index.mapper.MapperParsingException: No handler for
type [attachment] declared on field [file]
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parseProperties(ObjectMapper.java:254)
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parse(ObjectMapper.java:217)
at
org.elasticsearch.index.mapper.DocumentMapperParser.parse(DocumentMapperPar ser.java:
162)
at
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:
269)
at org.elasticsearch.cluster.metadata.MetaDataMappingService
$4.execute(MetaDataMappingService.java:302)
at org.elasticsearch.cluster.service.InternalClusterService
$2.run(InternalClusterService.java:211)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
AFAIK ES plugins are detected and loaded at the ES node start time only. If
you add them while the node is running I do not think they will be
recognized.
You might consider to add the plugin as required into the node
configuration (elasticsearch.yml):
plugin.mandatory: mapper-attachments
This means the node will not start if required plugin is missing.
I get this error when I add mapping for attachments
org.elasticsearch.index.mapper.MapperParsingException: No handler for
type [attachment] declared on field [file]
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parseProperties(ObjectMapper.java:254)
at org.elasticsearch.index.mapper.object.ObjectMapper
$TypeParser.parse(ObjectMapper.java:217)
at
at
org.elasticsearch.index.mapper.MapperService.parse(MapperService.java:
269)
at org.elasticsearch.cluster.metadata.MetaDataMappingService
$4.execute(MetaDataMappingService.java:302)
at org.elasticsearch.cluster.service.InternalClusterService
$2.run(InternalClusterService.java:211)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
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.