Attachment plugin error

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)

Any help would be appreciated

Your attachment plugin is not correctly setup.
What are your ES and plugin versions ?

Le 30 mai 2012 à 07:12, ajan jan.afzal@gmail.com a écrit :

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)

Any help would be appreciated

Thanks for your response. I had to restart the cluster for the
attachment plugin to be loaded. Is this a requirement?

On May 30, 10:34 am, David Pilato da...@pilato.fr wrote:

Your attachment plugin is not correctly setup.
What are your ES and plugin versions ?

Le 30 mai 2012 à 07:12, ajan jan.af...@gmail.com a écrit :

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)

Any help would be appreciated

Hi,

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.

Regards,
Lukas

On Wed, May 30, 2012 at 8:49 AM, ajan jan.afzal@gmail.com wrote:

Thanks for your response. I had to restart the cluster for the
attachment plugin to be loaded. Is this a requirement?

On May 30, 10:34 am, David Pilato da...@pilato.fr wrote:

Your attachment plugin is not correctly setup.
What are your ES and plugin versions ?

Le 30 mai 2012 à 07:12, ajan jan.af...@gmail.com a écrit :

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:

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)

Any help would be appreciated