# Can't install elasticsearch-analysis-phonetic on Ubuntu

**URL:** <https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878>\
**Category:** Elasticsearch\
**Created:** [October 8, 2013, 2:42pm UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878 "2013-10-08T14:42:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomaz\_de\_Oliveira\_d](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomaz_de_oliveira_d/32/2064_2.png) [@Thomaz\_de\_Oliveira\_d](https://discuss.elastic.co/u/Thomaz_de_Oliveira_d)\
**Post date:** [October 8, 2013, 2:42pm UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878/1 "2013-10-08T14:42:30Z")

</div>

Hi!

I was able to correctly install with "bin/plugin -install  
elasticsearch/elasticsearch-analysis-phonetic" on a Debian machine but on  
the ubuntu it doesn't seems to work.

It corectly installs, but when I try to use it, I receive the following  
error:

[ERROR] There has been an error when creating the index -- Elasticsearch  
returned:  
400 :  
{"error":"RemoteTransportException[[Spiral][inet[/10.61.6.74:9300]][indices/create]];  
nested: IndexCreationException[[odin\_development\_\_nodes] failed to create  
index]; nested: ElasticSearchIllegalArgumentException[failed to find token  
filter type [phonetic] for [ptbr\_phonetic]]; nested:  
NoClassSettingsException[Failed to load class setting [type] with value  
[phonetic]]; nested:  
ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];  
","status":400}

I've already restarted elasticsearch after install but it doesn't works.

The difference between machines:

Debian (works):  
$ uname -a  
Linux novabusca-devel.ebc 2.6.26-2-xen-amd64 #1 SMP Mon Mar 5 00:38:41 UTC  
2012 x86\_64 GNU/Linux

$ java -version  
java version "1.6.0\_18"  
OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)  
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

$ dpkg -l | grep elastic  
ii elasticsearch 0.20.6 Open  
Source, Distributed, RESTful Search Engine

/usr/share/elasticsearch/plugins$ ls analysis-phonetic/  
commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
lucene-analyzers-phonetic-4.4.0.jar

Command used for installation:  
bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.6.0

Ubuntu (doesn't works):  
$ uname -a  
Linux treis-OptiPlex-3010 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9  
00:17:05 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux

$ java -version  
java version "1.7.0\_25"  
OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)  
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

$ dpkg -l | grep elastic  
ii elasticsearch  
0.90.5 all Open Source,  
Distributed, RESTful Search Engine

/usr/share/elasticsearch/plugins# ls analysis-phonetic/  
commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
lucene-analyzers-phonetic-4.4.0.jar

Command used for installation:  
bin/plugin --install elasticsearch/elasticsearch-analysis-phonetic/1.6.0  
--url file:///var/www/elasticsearch-analysis-phonetic-1.6.0.zip

I had to use "--url" since it doesn't download under proxy.

Thanks for any help!

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 8, 2013, 3:40pm UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878/2 "2013-10-08T15:40:21Z")

</div>

Hey,

it would be useful if you could provide the steps to reproduce the above  
exception (including a gist with curl calls to create the mapping).

Judging from your elasticsearch versions I suppose the plugin version 1.6.0  
to work under 0.90.5 but not with 0.20 (which is vice versa to your  
obvervations). Just curious if this is true and you didnt mix up stuff.

--Alex

On Tue, Oct 8, 2013 at 4:42 PM, Thomaz de Oliveira dos Reis \<  
[thor27@gmail.com](mailto:thor27@gmail.com)\> wrote:

> Hi!
> 
> I was able to correctly install with "bin/plugin -install  
> elasticsearch/elasticsearch-analysis-phonetic" on a Debian machine but on  
> the ubuntu it doesn't seems to work.
> 
> It corectly installs, but when I try to use it, I receive the following  
> error:
> 
> [ERROR] There has been an error when creating the index -- Elasticsearch  
> returned:  
> 400 : {"error":"RemoteTransportException[[Spiral][inet[/10.61.6.74:9300]][indices/create]];  
> nested: IndexCreationException[[odin\_development\_\_nodes] failed to create  
> index]; nested: ElasticSearchIllegalArgumentException[failed to find token  
> filter type [phonetic] for [ptbr\_phonetic]]; nested:  
> NoClassSettingsException[Failed to load class setting [type] with value  
> [phonetic]]; nested:  
> ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];  
> ","status":400}
> 
> I've already restarted elasticsearch after install but it doesn't works.
> 
> The difference between machines:
> 
> Debian (works):  
> $ uname -a  
> Linux novabusca-devel.ebc 2.6.26-2-xen-amd64 #1 SMP Mon Mar 5 00:38:41 UTC  
> 2012 x86\_64 GNU/Linux
> 
> $ java -version  
> java version "1.6.0\_18"  
> OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)  
> OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
> 
> $ dpkg -l | grep elastic  
> ii elasticsearch 0.20.6 Open  
> Source, Distributed, RESTful Search Engine
> 
> /usr/share/elasticsearch/plugins$ ls analysis-phonetic/  
> commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
> lucene-analyzers-phonetic-4.4.0.jar
> 
> Command used for installation:  
> bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.6.0
> 
> Ubuntu (doesn't works):  
> $ uname -a  
> Linux treis-OptiPlex-3010 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9  
> 00:17:05 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux
> 
> $ java -version  
> java version "1.7.0\_25"  
> OpenJDK Runtime Environment (IcedTea 2.3.10) (7u25-2.3.10-1ubuntu0.13.04.2)  
> OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> 
> $ dpkg -l | grep elastic  
> ii elasticsearch  
> 0.90.5 all Open Source,  
> Distributed, RESTful Search Engine
> 
> /usr/share/elasticsearch/plugins# ls analysis-phonetic/  
> commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
> lucene-analyzers-phonetic-4.4.0.jar
> 
> Command used for installation:  
> bin/plugin --install elasticsearch/elasticsearch-analysis-phonetic/1.6.0  
> --url file:///var/www/elasticsearch-analysis-phonetic-1.6.0.zip
> 
> I had to use "--url" since it doesn't download under proxy.
> 
> Thanks for any help!
> 
> --  
> 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Thomaz\_de\_Oliveira\_d](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomaz_de_oliveira_d/32/2064_2.png) [@Thomaz\_de\_Oliveira\_d](https://discuss.elastic.co/u/Thomaz_de_Oliveira_d)\
**Post date:** [October 8, 2013, 5:19pm UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878/3 "2013-10-08T17:19:17Z")

</div>

Hi,

Thanks for the fast reply!

Em terça-feira, 8 de outubro de 2013 12h40min21s UTC-3, Alexander Reelsen  
escreveu:

> Hey,
> 
> it would be useful if you could provide the steps to reproduce the above  
> exception (including a gist with curl calls to create the mapping).

Ok, as my project uses Rails and Tire I created a simple curl that  
reproduces the error.

It's here: [gist:6888070 · GitHub](https://gist.github.com/thor27/6888070)

On Debian:  
{"ok":true,"acknowledged":true}

On Ubuntu:  
{"error":"RemoteTransportException[[Spiral][inet[/10.61.6.74:9300]][indices/create]];  
nested: IndexCreationException[[example] failed to create index]; nested:  
ElasticSearchIllegalArgumentException[failed to find token filter type  
[phonetic] for [my\_metaphone]]; nested: NoClassSettingsException[Failed to  
load class setting [type] with value [phonetic]]; nested:  
ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];  
","status":400}

> Judging from your elasticsearch versions I suppose the plugin version  
> 1.6.0 to work under 0.90.5 but not with 0.20 (which is vice versa to your  
> obvervations). Just curious if this is true and you didnt mix up stuff.

Checked again here, working fine on debian with ES 0.20.6 and not working  
on ubuntu with ES 0.90.5  
I've also tried to install ES 0.20.6 on the ubuntu machine but still it  
didn't worked.

Maybe it could be java version related?

> --Alex
> 
> On Tue, Oct 8, 2013 at 4:42 PM, Thomaz de Oliveira dos Reis \<  
> [tho...@gmail.com](mailto:tho...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi!
> > 
> > I was able to correctly install with "bin/plugin -install  
> > elasticsearch/elasticsearch-analysis-phonetic" on a Debian machine but on  
> > the ubuntu it doesn't seems to work.
> > 
> > It corectly installs, but when I try to use it, I receive the following  
> > error:
> > 
> > [ERROR] There has been an error when creating the index -- Elasticsearch  
> > returned:  
> > 400 :  
> > {"error":"RemoteTransportException[[Spiral][inet[/10.61.6.74:9300]][indices/create]];  
> > nested: IndexCreationException[[odin\_development\_\_nodes] failed to create  
> > index]; nested: ElasticSearchIllegalArgumentException[failed to find token  
> > filter type [phonetic] for [ptbr\_phonetic]]; nested:  
> > NoClassSettingsException[Failed to load class setting [type] with value  
> > [phonetic]]; nested:  
> > ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];  
> > ","status":400}
> > 
> > I've already restarted elasticsearch after install but it doesn't works.
> > 
> > The difference between machines:
> > 
> > Debian (works):  
> > $ uname -a  
> > Linux novabusca-devel.ebc 2.6.26-2-xen-amd64 #1 SMP Mon Mar 5 00:38:41  
> > UTC 2012 x86\_64 GNU/Linux
> > 
> > $ java -version  
> > java version "1.6.0\_18"  
> > OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)  
> > OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
> > 
> > $ dpkg -l | grep elastic  
> > ii elasticsearch 0.20.6 Open  
> > Source, Distributed, RESTful Search Engine
> > 
> > /usr/share/elasticsearch/plugins$ ls analysis-phonetic/  
> > commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
> > lucene-analyzers-phonetic-4.4.0.jar
> > 
> > Command used for installation:  
> > bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.6.0
> > 
> > Ubuntu (doesn't works):  
> > $ uname -a  
> > Linux treis-OptiPlex-3010 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9  
> > 00:17:05 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux
> > 
> > $ java -version  
> > java version "1.7.0\_25"  
> > OpenJDK Runtime Environment (IcedTea 2.3.10)  
> > (7u25-2.3.10-1ubuntu0.13.04.2)  
> > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> > 
> > $ dpkg -l | grep elastic  
> > ii elasticsearch  
> > 0.90.5 all Open Source,  
> > Distributed, RESTful Search Engine
> > 
> > /usr/share/elasticsearch/plugins# ls analysis-phonetic/  
> > commons-codec-1.7.jar elasticsearch-analysis-phonetic-1.6.0.jar  
> > lucene-analyzers-phonetic-4.4.0.jar
> > 
> > Command used for installation:  
> > bin/plugin --install elasticsearch/elasticsearch-analysis-phonetic/1.6.0  
> > --url file:///var/www/elasticsearch-analysis-phonetic-1.6.0.zip
> > 
> > I had to use "--url" since it doesn't download under proxy.
> > 
> > Thanks for any help!
> > 
> > --  
> > 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](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 9, 2013, 5:15pm UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878/4 "2013-10-09T17:15:55Z")

</div>

Have you tried installing an older version of the plugin? The master branch  
does not support 0.20. Try version 1.2.0

bin/plugin -install elasticsearch/elasticsearch-analysis-phonetic/1.2.0

Something must have changed with Lucene 4.

Cheers,

Ivan

On Tue, Oct 8, 2013 at 10:19 AM, Thomaz de Oliveira dos Reis \<  
[thor27@gmail.com](mailto:thor27@gmail.com)\> wrote:

> Hi,
> 
> Thanks for the fast reply!
> 
> Em terça-feira, 8 de outubro de 2013 12h40min21s UTC-3, Alexander Reelsen  
> escreveu:
> 
> > Hey,
> > 
> > it would be useful if you could provide the steps to reproduce the above  
> > exception (including a gist with curl calls to create the mapping).
> 
> Ok, as my project uses Rails and Tire I created a simple curl that  
> reproduces the error.
> 
> It's here: [gist:6888070 · GitHub](https://gist.github.com/thor27/6888070)
> 
> On Debian:  
> {"ok":true,"acknowledged":true}
> 
> On Ubuntu:  
> {"error":"RemoteTransportException[[Spiral][inet[/10.61.6.74:9300]][indices/create]];  
> nested: IndexCreationException[[example] failed to create index]; nested:  
> ElasticSearchIllegalArgumentException[failed to find token filter type  
> [phonetic] for [my\_metaphone]]; nested: NoClassSettingsException[Failed to  
> load class setting [type] with value [phonetic]]; nested:  
> ClassNotFoundException[org.elasticsearch.index.analysis.phonetic.PhoneticTokenFilterFactory];  
> ","status":400}
> 
> > Judging from your elasticsearch versions I suppose the plugin version  
> > 1.6.0 to work under 0.90.5 but not with 0.20 (which is vice versa to your  
> > obvervations). Just curious if this is true and you didnt mix up stuff.
> 
> Checked again here, working fine on debian with ES 0.20.6 and not working  
> on ubuntu with ES 0.90.5  
> I've also tried to install ES 0.20.6 on the ubuntu machine but still it  
> didn't worked.
> 
> Maybe it could be java version related?
> 
> > --Alex
> > 
> > On Tue, Oct 8, 2013 at 4:42 PM, Thomaz de Oliveira dos Reis \<  
> > [tho...@gmail.com](mailto:tho...@gmail.com)\> wrote:
> > 
> > > Hi!
> > > 
> > > I was able to correctly install with "bin/plugin -install  
> > > elasticsearch/elasticsearch-\*\*analysis-phonetic" on a Debian machine  
> > > but on the ubuntu it doesn't seems to work.
> > > 
> > > It corectly installs, but when I try to use it, I receive the following  
> > > error:
> > > 
> > > [ERROR] There has been an error when creating the index -- Elasticsearch  
> > > returned:  
> > > 400 : {"error":"\*\*RemoteTransportException[[**Spiral][inet[/  
> > > 10.61.6.74:9300]**][indices/create]]; nested:  
> > > IndexCreationException[[odin\_**development\_\_nodes] failed to create  
> > > index]; nested: ElasticSearchIllegalArgumentEx**ception[failed to find  
> > > token filter type [phonetic] for [ptbr\_phonetic]]; nested:  
> > > NoClassSettingsException[**Failed to load class setting [type] with  
> > > value [phonetic]]; nested: ClassNotFoundException[org.**  
> > > elasticsearch.index.analysis.\*\*phonetic.\*\*PhoneticTokenFilterFactory];  
> > > ","status":400}
> > > 
> > > I've already restarted elasticsearch after install but it doesn't works.
> > > 
> > > The difference between machines:
> > > 
> > > Debian (works):  
> > > $ uname -a  
> > > Linux novabusca-devel.ebc 2.6.26-2-xen-amd64 #1 SMP Mon Mar 5 00:38:41  
> > > UTC 2012 x86\_64 GNU/Linux
> > > 
> > > $ java -version  
> > > java version "1.6.0\_18"  
> > > OpenJDK Runtime Environment (IcedTea6 1.8.13) (6b18-1.8.13-0+squeeze2)  
> > > OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
> > > 
> > > $ dpkg -l | grep elastic  
> > > ii elasticsearch \*\* 0.20.6  
> > > Open Source, Distributed, RESTful Search Engine
> > > 
> > > /usr/share/elasticsearch/\*\*plugins$ ls analysis-phonetic/  
> > > commons-codec-1.7.jar elasticsearch-analysis-\*\*phonetic-1.6.0.jar  
> > > lucene-analyzers-phonetic-4.4.\*\*0.jar
> > > 
> > > Command used for installation:  
> > > bin/plugin -install elasticsearch/elasticsearch-\*\*  
> > > analysis-phonetic/1.6.0
> > > 
> > > Ubuntu (doesn't works):  
> > > $ uname -a  
> > > Linux treis-OptiPlex-3010 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9  
> > > 00:17:05 UTC 2013 x86\_64 x86\_64 x86\_64 GNU/Linux
> > > 
> > > $ java -version  
> > > java version "1.7.0\_25"  
> > > OpenJDK Runtime Environment (IcedTea 2.3.10)  
> > > (7u25-2.3.10-1ubuntu0.13.04.2)  
> > > OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
> > > 
> > > $ dpkg -l | grep elastic  
> > > ii elasticsearch \*\*  
> > > 0.90.5 \*\* all Open Source,  
> > > Distributed, RESTful Search Engine
> > > 
> > > /usr/share/elasticsearch/\*\*plugins# ls analysis-phonetic/  
> > > commons-codec-1.7.jar elasticsearch-analysis-\*\*phonetic-1.6.0.jar  
> > > lucene-analyzers-phonetic-4.4.\*\*0.jar
> > > 
> > > Command used for installation:  
> > > bin/plugin --install elasticsearch/elasticsearch-\*\*analysis-phonetic/1.6.0  
> > > --url file:///var/www/elasticsearch-\*\*analysis-phonetic-1.6.0.zip
> > > 
> > > I had to use "--url" since it doesn't download under proxy.
> > > 
> > > Thanks for any help!
> > > 
> > > --  
> > > 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](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > 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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 2:13am UTC](https://discuss.elastic.co/t/cant-install-elasticsearch-analysis-phonetic-on-ubuntu/13878/5 "2017-07-06T02:13:11Z")

</div>


