sonian / elasticsearch-jetty

Apache License 2.0
284 stars 79 forks source link

How do I install version 1.0.1? #45

Closed ghost closed 10 years ago

ghost commented 10 years ago

i tried both:

/usr/share/elasticsearch/bin/plugin -url https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-1.0.1.zip -install elasticsearch-jetty-1.0.1

which gives:

"Failed to install elasticsearch-jetty-1.0.1, reason: failed to download out of all possible locations..., use -verbose to get detailed information"

and:

/usr/share/elasticsearch/bin/plugin --install sonian/elasticsearch-jetty/1.0.1

which gives:

"-> Installing sonian/elasticsearch-jetty/1.0.1... Trying http://download.elasticsearch.org/sonian/elasticsearch-jetty/elasticsearch-jetty-1.0.1.zip... Trying http://search.maven.org/remotecontent?filepath=sonian/elasticsearch-jetty/1.0.1/elasticsearch-jetty-1.0.1.zip... Trying https://oss.sonatype.org/service/local/repositories/releases/content/sonian/elasticsearch-jetty/1.0.1/elasticsearch-jetty-1.0.1.zip... Trying https://github.com/sonian/elasticsearch-jetty/archive/v1.0.1.zip... Trying https://github.com/sonian/elasticsearch-jetty/archive/master.zip... Downloading ................................................................DONE Installed sonian/elasticsearch-jetty/1.0.1 into /usr/share/elasticsearch/plugins/jetty

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

pmusa commented 10 years ago

The first link is a zip file that does not exist. The second link tries expected common places. He did not find in any of the links showing in the message, but the last one, which is the github master tree. In other words, he downloaded the whole source code from github instead of the jar for the plugin.

Try the following link. https://s3.amazonaws.com/www.emergi.net/elasticsearch/plugins/elasticsearch-jetty-1.0.0.zip

Notice that EmergiNet's plugin enable CORS.

Send me an email if you need help configuring it.

Regards, Pablo

2014-03-25 17:28 GMT-03:00 Paul Carvill notifications@github.com:

i tried both:

/usr/share/elasticsearch/bin/plugin -url https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-1.0.1.zip-install elasticsearch-jetty-1.0.1

which gives:

"Failed to install elasticsearch-jetty-1.0.1, reason: failed to download out of all possible locations..., use -verbose to get detailed information"

and:

/usr/share/elasticsearch/bin/plugin --install sonian/elasticsearch-jetty/1.0.1

which gives:

"-> Installing sonian/elasticsearch-jetty/1.0.1... Trying http://download.elasticsearch.org/sonian/elasticsearch-jetty/elasticsearch-jetty-1.0.1.zip ... Trying http://search.maven.org/remotecontent?filepath=sonian/elasticsearch-jetty/1.0.1/elasticsearch-jetty-1.0.1.zip ... Trying https://oss.sonatype.org/service/local/repositories/releases/content/sonian/elasticsearch-jetty/1.0.1/elasticsearch-jetty-1.0.1.zip ... Trying https://github.com/sonian/elasticsearch-jetty/archive/v1.0.1.zip... Trying https://github.com/sonian/elasticsearch-jetty/archive/master.zip... Downloading ................................................................DONE Installed sonian/elasticsearch-jetty/1.0.1 into /usr/share/elasticsearch/plugins/jetty

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

Reply to this email directly or view it on GitHubhttps://github.com/sonian/elasticsearch-jetty/issues/45 .

ghost commented 10 years ago

Thanks. Seems to work - got it installed, and a cURL to my node shows Jetty is serving the response, by returning

○ → curl -I http://***.cloudapp.net:9200 HTTP/1.1 200 OK Server: Jetty(8.1.14.v20131031)

But now I can't get HTTP basic auth to work!

pmusa commented 10 years ago

You must configure the xmls in the config folder.

2014-03-26 19:36 GMT-03:00 Paul Carvill notifications@github.com:

Closed #45 https://github.com/sonian/elasticsearch-jetty/issues/45.

Reply to this email directly or view it on GitHubhttps://github.com/sonian/elasticsearch-jetty/issues/45 .

ghost commented 10 years ago

Yep, all done. Had to move them from the plugin dir to /etc/elasticsearch alongside elastic search.yml. All working now. Thanks!