Elasticsearch-analysis-phonetic installs correctly but fails when creating an index

Plugin installation seems to succeed.

[root@host elasticsearch-1.0.1]# bin/plugin -install 

elasticsearch/elasticsearch-analysis-phonetic/2.0.0
-> Installing elasticsearch/elasticsearch-analysis-phonetic/2.0.0...
Trying
http://download.elasticsearch.org/elasticsearch/elasticsearch-analysis-phonetic/elasticsearch-analysis-phonetic-2.0.0.zip...
Downloading ............................DONE
Installed elasticsearch/elasticsearch-analysis-phonetic/2.0.0 into
/root/elasticsearch-1.0.1/plugins/analysis-phonetic
[root@host elasticsearch-1.0.1]# bin/elasticsearch
[2014-03-12 00:58:59,782][INFO ][node ] [Jack
Kirby] version[1.0.1], pid[6456], build[5c03844/2014-02-25T15:52:53Z]
[2014-03-12 00:58:59,783][INFO ][node ] [Jack
Kirby] initializing ...
[2014-03-12 00:58:59,817][INFO ][plugins ] [Jack
Kirby] loaded [cloud-aws, analysis-phonetic], sites [head]
[2014-03-12 00:59:04,523][INFO ][node ] [Jack
Kirby] initialized
[2014-03-12 00:59:04,523][INFO ][node ] [Jack
Kirby] starting ...
[2014-03-12 00:59:04,650][INFO ][transport ] [Jack
Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address
{inet[/172.31.27.225:9300]}
[2014-03-12 00:59:07,706][INFO ][cluster.service ] [Jack
Kirby] new_master [Jack
Kirby][fhpzKNmcRLKc208DuuXRrA][host][inet[/172.31.27.225:9300]], reason:
zen-disco-join (elected_as_master)
[2014-03-12 00:59:07,762][INFO ][discovery ] [Jack
Kirby] elasticsearch/fhpzKNmcRLKc208DuuXRrA
[2014-03-12 00:59:07,903][INFO ][http ] [Jack
Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address
{inet[/172.31.27.225:9200]}
[2014-03-12 00:59:09,079][INFO ][gateway ] [Jack
Kirby] recovered [1] indices into cluster_state
[2014-03-12 00:59:09,276][INFO ][node ] [Jack
Kirby] started

But attempting to create an index with a phonetic filter yields:

400 : {"error":"IndexCreationException[[asdf] failed to create index]; 

nested: ElasticsearchIllegalArgumentException[failed to find token filter
type [phonetic] for [phonetic]]; nested: NoClassSettingsException[Failed to
load class setting [type] with value [phonetic]]; nested:
ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];
","status":400}

With nothing logged to the console. Here's some more information about the
host:

[root@host elasticsearch-1.0.1]# uname -a
Linux host 3.4.73-64.112.amzn1.x86_64 #1 SMP Tue Dec 10 01:50:05 UTC 

2013 x86_64 x86_64 x86_64 GNU/Linux
[root@host elasticsearch-1.0.1]# java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (amzn-2.4.4.1.34.amzn1-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

For some reason, the same steps work on my local workstation:

$ uname -a
Darwin Valverde.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 

19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I have tried OpenJDK 6 and 7, Oracle JDK 7, ElasticSearch 1.0.0 and 1.0.1.
None of those worked on the server. Any help is appreciated.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9be47e6e-69fc-47c9-a4b8-c170300ffaf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Which command do you run to create your index?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 mars 2014 à 02:07, Thiago Valverde tc.valverde@gmail.com a écrit :

Plugin installation seems to succeed.

[root@host elasticsearch-1.0.1]# bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/2.0.0
-> Installing elasticsearch/elasticsearch-analysis-phonetic/2.0.0...
Trying http://download.elasticsearch.org/elasticsearch/elasticsearch-analysis-phonetic/elasticsearch-analysis-phonetic-2.0.0.zip...
Downloading ............................DONE
Installed elasticsearch/elasticsearch-analysis-phonetic/2.0.0 into /root/elasticsearch-1.0.1/plugins/analysis-phonetic
[root@host elasticsearch-1.0.1]# bin/elasticsearch
[2014-03-12 00:58:59,782][INFO ][node                     ] [Jack Kirby] version[1.0.1], pid[6456], build[5c03844/2014-02-25T15:52:53Z]
[2014-03-12 00:58:59,783][INFO ][node                     ] [Jack Kirby] initializing ...
[2014-03-12 00:58:59,817][INFO ][plugins                  ] [Jack Kirby] loaded [cloud-aws, analysis-phonetic], sites [head]
[2014-03-12 00:59:04,523][INFO ][node                     ] [Jack Kirby] initialized
[2014-03-12 00:59:04,523][INFO ][node                     ] [Jack Kirby] starting ...
[2014-03-12 00:59:04,650][INFO ][transport                ] [Jack Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/172.31.27.225:9300]}
[2014-03-12 00:59:07,706][INFO ][cluster.service          ] [Jack Kirby] new_master [Jack Kirby][fhpzKNmcRLKc208DuuXRrA][host][inet[/172.31.27.225:9300]], reason: zen-disco-join (elected_as_master)
[2014-03-12 00:59:07,762][INFO ][discovery                ] [Jack Kirby] elasticsearch/fhpzKNmcRLKc208DuuXRrA
[2014-03-12 00:59:07,903][INFO ][http                     ] [Jack Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/172.31.27.225:9200]}
[2014-03-12 00:59:09,079][INFO ][gateway                  ] [Jack Kirby] recovered [1] indices into cluster_state
[2014-03-12 00:59:09,276][INFO ][node                     ] [Jack Kirby] started

But attempting to create an index with a phonetic filter yields:

400 : {"error":"IndexCreationException[[asdf] failed to create index]; nested: ElasticsearchIllegalArgumentException[failed to find token filter type [phonetic] for [phonetic]]; nested: NoClassSettingsException[Failed to load class setting [type] with value [phonetic]]; nested: ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory]; ","status":400} 

With nothing logged to the console. Here's some more information about the host:

[root@host elasticsearch-1.0.1]# uname -a
Linux host 3.4.73-64.112.amzn1.x86_64 #1 SMP Tue Dec 10 01:50:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@host elasticsearch-1.0.1]# java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (amzn-2.4.4.1.34.amzn1-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

For some reason, the same steps work on my local workstation:

$ uname -a
Darwin Valverde.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I have tried OpenJDK 6 and 7, Oracle JDK 7, ElasticSearch 1.0.0 and 1.0.1. None of those worked on the server. Any help is appreciated.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9be47e6e-69fc-47c9-a4b8-c170300ffaf9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0FB3DA7A-8503-4895-96EC-84F3214BBB84%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.

Thanks for asking the right question, haha. While putting together a
sample, I realized I was POSTing to the wrong server after all.

Cheers!

On Wednesday, March 12, 2014 3:30:29 AM UTC-3, David Pilato wrote:

Which command do you run to create your index?

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 12 mars 2014 à 02:07, Thiago Valverde <tc.va...@gmail.com <javascript:>>
a écrit :

Plugin installation seems to succeed.

[root@host elasticsearch-1.0.1]# bin/plugin -install 

elasticsearch/elasticsearch-analysis-phonetic/2.0.0
-> Installing elasticsearch/elasticsearch-analysis-phonetic/2.0.0...
Trying
http://download.elasticsearch.org/elasticsearch/elasticsearch-analysis-phonetic/elasticsearch-analysis-phonetic-2.0.0.zip
...
Downloading ............................DONE
Installed elasticsearch/elasticsearch-analysis-phonetic/2.0.0 into
/root/elasticsearch-1.0.1/plugins/analysis-phonetic
[root@host elasticsearch-1.0.1]# bin/elasticsearch
[2014-03-12 00:58:59,782][INFO ][node ] [Jack
Kirby] version[1.0.1], pid[6456], build[5c03844/2014-02-25T15:52:53Z]
[2014-03-12 00:58:59,783][INFO ][node ] [Jack
Kirby] initializing ...
[2014-03-12 00:58:59,817][INFO ][plugins ] [Jack
Kirby] loaded [cloud-aws, analysis-phonetic], sites [head]
[2014-03-12 00:59:04,523][INFO ][node ] [Jack
Kirby] initialized
[2014-03-12 00:59:04,523][INFO ][node ] [Jack
Kirby] starting ...
[2014-03-12 00:59:04,650][INFO ][transport ] [Jack
Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/
172.31.27.225:9300]}
[2014-03-12 00:59:07,706][INFO ][cluster.service ] [Jack
Kirby] new_master [Jack
Kirby][fhpzKNmcRLKc208DuuXRrA][host][inet[/172.31.27.225:9300]], reason:
zen-disco-join (elected_as_master)
[2014-03-12 00:59:07,762][INFO ][discovery ] [Jack
Kirby] elasticsearch/fhpzKNmcRLKc208DuuXRrA
[2014-03-12 00:59:07,903][INFO ][http ] [Jack
Kirby] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/
172.31.27.225:9200]}
[2014-03-12 00:59:09,079][INFO ][gateway ] [Jack
Kirby] recovered [1] indices into cluster_state
[2014-03-12 00:59:09,276][INFO ][node ] [Jack
Kirby] started

But attempting to create an index with a phonetic filter yields:

400 : {"error":"IndexCreationException[[asdf] failed to create index]; 

nested: ElasticsearchIllegalArgumentException[failed to find token filter
type [phonetic] for [phonetic]]; nested: NoClassSettingsException[Failed to
load class setting [type] with value [phonetic]]; nested:
ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];
","status":400}

With nothing logged to the console. Here's some more information about the
host:

[root@host elasticsearch-1.0.1]# uname -a
Linux host 3.4.73-64.112.amzn1.x86_64 #1 SMP Tue Dec 10 01:50:05 UTC 

2013 x86_64 x86_64 x86_64 GNU/Linux
[root@host elasticsearch-1.0.1]# java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (amzn-2.4.4.1.34.amzn1-x86_64 u51-b02)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

For some reason, the same steps work on my local workstation:

$ uname -a
Darwin Valverde.local 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 

19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64
$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I have tried OpenJDK 6 and 7, Oracle JDK 7, Elasticsearch 1.0.0 and 1.0.1.
None of those worked on the server. Any help is appreciated.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/9be47e6e-69fc-47c9-a4b8-c170300ffaf9%40googlegroups.comhttps://groups.google.com/d/msgid/elasticsearch/9be47e6e-69fc-47c9-a4b8-c170300ffaf9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a6982a61-f44b-4b83-a254-0056a043df83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi @Thiago_Valverde,

Can u please let me know how to install phonetic analyser plugin.

Thanks,
@vaniaravinda

Don't answer to 2 years old threads. I does not make sense.

Open a new one.

BTW read this https://www.elastic.co/guide/en/elasticsearch/plugins/current/analysis-phonetic.html

Hi @dadoonet,

First of all TanQ for ur quick response. I created a new thread (https://discuss.elastic.co/t/how-to-install-elasticsearch-phonetic-analysis-plugin/46153). I need it urgently so thought that someone will help me as soon as possible. That's y I posted here also. I'm sorry for opening the old thread. I have already gone through the link u provided but I'm not able to run it. It will be help full if u provide more details.

Thanks,
@vaniaravinda