Can't install elasticsearch-analysis-phonetic on Ubuntu

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.
For more options, visit https://groups.google.com/groups/opt_out.

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> 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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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

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 <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 <javascript:>.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.

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> 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

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> 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.

For more options, visit https://groups.google.com/**groups/opt_outhttps://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.
For more options, visit 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.
For more options, visit https://groups.google.com/groups/opt_out.