medcl / elasticsearch-analysis-paoding

Paoding Analysis Plugin for ElasticSearch
21 stars 22 forks source link

Error while installing the plugin on ES 1.0.1 #1

Open damienalexandre opened 10 years ago

damienalexandre commented 10 years ago

Look like we can't install this plugin Elasticsearch 1.0.1: I got this error:

Error while installing plugin, reason: IllegalArgumentException: Plugin installation assumed to be site plugin, but contains source code, aborting installation.

Here is the full log:

sudo /usr/share/elasticsearch/bin/plugin -i medcl/elasticsearch-analysis-paoding/1.0.0 

-> Installing medcl/elasticsearch-analysis-paoding/1.0.0...
Trying http://download.elasticsearch.org/medcl/elasticsearch-analysis-paoding/elasticsearch-analysis-paoding-1.0.0.zip...
Trying http://search.maven.org/remotecontent?filepath=medcl/elasticsearch-analysis-paoding/1.0.0/elasticsearch-analysis-paoding-1.0.0.zip...
Trying https://oss.sonatype.org/service/local/repositories/releases/content/medcl/elasticsearch-analysis-paoding/1.0.0/elasticsearch-analysis-paoding-1.0.0.zip...
Trying https://github.com/medcl/elasticsearch-analysis-paoding/archive/v1.0.0.zip...
Trying https://github.com/medcl/elasticsearch-analysis-paoding/archive/master.zip...
Downloading ...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Installed medcl/elasticsearch-analysis-paoding/1.0.0 into /usr/share/elasticsearch/plugins/analysis-paoding
Usage:
    -u, --url     [plugin location]   : Set exact URL to download the plugin from
    -i, --install [plugin name]       : Downloads and installs listed plugins [*]
    -t, --timeout [duration]          : Timeout setting: 30s, 1m, 1h... (infinite by default)
    -r, --remove  [plugin name]       : Removes listed plugins
    -l, --list                        : List installed plugins
    -v, --verbose                     : Prints verbose messages
    -s, --silent                      : Run in silent mode
    -h, --help                        : Prints this help message

 [*] Plugin name could be:
     elasticsearch/plugin/version for official elasticsearch plugins (download from download.elasticsearch.org)
     groupId/artifactId/version   for community plugins (download from maven central or oss sonatype)
     username/repository          for site plugins (download from github master)

Message:
   Error while installing plugin, reason: IllegalArgumentException: Plugin installation assumed to be site plugin, but contains source code, aborting installation.

I don't get why Elasticsearch assume this is a site plugin when there is no _site repertory at all.

Cheers.

damienalexandre commented 10 years ago

For anyone facing this issue with no clue at all (the Exception does not help a lot), here is how to install the plugin manually (you need JDK and Maven):

git clone git@github.com:medcl/elasticsearch-analysis-paoding.git /tmp/elasticsearch-analysis-paoding
cd /tmp/elasticsearch-analysis-paoding
mvn clean package
sudo /usr/share/elasticsearch/bin/plugin -url file:/tmp/elasticsearch-analysis-paoding/target/releases/elasticsearch-analysis-paoding-1.2.1.zip -install elasticsearch-analysis-paoding