Using attachment type


(Andrew Degtiariov) #1

Hello!

I'm playing with attachment type (using ES 0.10.0). From documentation
(http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/)
I understand that all I need only download apache-tika-0.7-src.zip and
place it to $ES_HOME/plugins directory.

But when I started ES the plugin not loaded:

[14:47:12,380][INFO ][node ] [Mary Walker]
{elasticsearch/0.10.0}[11532]: started
[14:50:43,475][INFO ][node ] [Ultra-Marine]
{elasticsearch/0.10.0}[11680]: initializing ...
[14:50:43,491][WARN ][plugins ] [Ultra-Marine] failed
to extract plugin
[/opt/project/parts/elasticsearch/plugins/apache-tika-0.7-src.zip],
ignoring...
java.io.FileNotFoundException:
/opt/project/parts/var/es_indices/plugins/apache-tika-0.7-src/
tika-0.7/tika-parsers/src/test/resources/test-documents/test-documents.zip
(No such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.(FileOutputStream.java:179)
at java.io.FileOutputStream.(FileOutputStream.java:131)
at org.elasticsearch.plugins.PluginsService.loadPluginsIntoClassLoader(PluginsService.java:212)
at org.elasticsearch.plugins.PluginsService.(PluginsService.java:58)
at org.elasticsearch.node.internal.InternalNode.(InternalNode.java:111)
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:159)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:65)
at org.elasticsearch.bootstrap.Bootstrap.main(Bootstrap.java:161)
[14:50:43,494][INFO ][plugins ] [Ultra-Marine] loaded []

Maybe I should build Tika before using it as plugin?

--
Andrew Degtiariov
DA-RIPE


(Clinton Gormley) #2

Hiya

I'm playing with attachment type (using ES 0.10.0). From documentation
(http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/)
I understand that all I need only download apache-tika-0.7-src.zip and
place it to $ES_HOME/plugins directory.

actually, you need the plugin built for elasticsearch, not apache-tika
itself.

You can install it with the $ES_HOME/bin/plugin command:

./bin/plugin install analysis-icu

You can see a list of the available plugins here:

http://elasticsearch.googlecode.com/svn/plugins/

clint


(Andrew Degtiariov) #3

On Thu, Sep 2, 2010 at 3:05 PM, Clinton Gormley clinton@iannounce.co.uk wrote:

Hiya

I'm playing with attachment type (using ES 0.10.0). From documentation
(http://www.elasticsearch.com/docs/elasticsearch/mapping/attachment/)
I understand that all I need only download apache-tika-0.7-src.zip and
place it to $ES_HOME/plugins directory.

actually, you need the plugin built for elasticsearch, not apache-tika
itself.

You can install it with the $ES_HOME/bin/plugin command:

./bin/plugin install analysis-icu

You can see a list of the available plugins here:

http://elasticsearch.googlecode.com/svn/plugins/

clint

Thank you!
But it is not fully clear from documentation.

--
Andrew Degtiariov
DA-RIPE


(Clinton Gormley) #4

actually, you need the plugin built for elasticsearch, not apache-tika
itself.

You can install it with the $ES_HOME/bin/plugin command:

./bin/plugin install analysis-icu

You can see a list of the available plugins here:

http://elasticsearch.googlecode.com/svn/plugins/

Thank you!
But it is not fully clear from documentation.

No, it isn't. I happen to know about it, but it took some searching for
me to remember how it works

docs need updating

clint


(system) #5