codelibs / elasticsearch-dataformat

Excel/CSV/BulkJSON downloads on Elasticsearch.
Apache License 2.0
144 stars 36 forks source link

Error installing into elasticsearch 2.3.1 #25

Open thiagomata opened 8 years ago

thiagomata commented 8 years ago
$ ./elasticsearch --version

Version: 2.3.1, Build: bd98092/2016-04-04T12:25:05Z, JVM: 1.7.0_95

$ sudo ./plugin install org.codelibs/elasticsearch-dataformat/2.3.1 --verbose

Version: 2.3.1, Build: bd98092/2016-04-04T12:25:05Z, JVM: 1.7.0_95 ubuntu@elastic-search-master:/usr/share/elasticsearch/bin$ ^Cdo ./plugin install org.codelibs/elasticsearch-dataformat/2.3.1 --verbose ubuntu@elastic-search-master:/usr/share/elasticsearch/bin$ sudo ./plugin install org.codelibs/elasticsearch-dataformat/2.3.1 --verbose -> Installing org.codelibs/elasticsearch-dataformat/2.3.1... Trying https://download.elastic.co/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://download.elastic.co/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://download.elastic.co/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip]; Trying https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; Trying https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/org/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/2.3.1.zip ... Failed: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/2.3.1.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/2.3.1.zip]; Trying https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip ... Failed: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip]; nested: FileNotFoundException[https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip]; ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

Looking to the link https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip, what should be https://github.com/org.codelibs/elasticsearch-dataformat/archive/master.zip, I dediced to try change the command to

sudo ./plugin install codelibs/elasticsearch-dataformat/2.3.1 --verbose

-> Installing codelibs/elasticsearch-dataformat/2.3.1... Trying https://download.elastic.co/codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://download.elastic.co/codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://download.elastic.co/codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.1.zip]; Trying https://search.maven.org/remotecontent?filepath=codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://search.maven.org/remotecontent?filepath=codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://search.maven.org/remotecontent?filepath=codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; Trying https://oss.sonatype.org/service/local/repositories/releases/content/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip ... Failed: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content/codelibs/elasticsearch-dataformat/2.3.1/elasticsearch-dataformat-2.3.1.zip]; Trying https://github.com/codelibs/elasticsearch-dataformat/archive/2.3.1.zip ... Failed: FileNotFoundException[https://codeload.github.com/codelibs/elasticsearch-dataformat/zip/2.3.1]; nested: FileNotFoundException[https://codeload.github.com/codelibs/elasticsearch-dataformat/zip/2.3.1]; Trying https://github.com/codelibs/elasticsearch-dataformat/archive/master.zip ... Downloading ..........................DONE Verifying https://github.com/codelibs/elasticsearch-dataformat/archive/master.zip checksums if available ... NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify) ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip

thiagomata commented 8 years ago

When I tried this way:

ubuntu@elastic-search:/usr/share/elasticsearch$ sudo ./bin/plugin install org.codelibs/elasticsearch-dataformat/2.3.0

It looks like it worked.

-> Installing org.codelibs/elasticsearch-dataformat/2.3.0...
Trying https://download.elastic.co/org.codelibs/elasticsearch-dataformat/elasticsearch-dataformat-2.3.0.zip ...
Trying https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/2.3.0/elasticsearch-dataformat-2.3.0.zip ...
Downloading ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................DONE
Verifying https://search.maven.org/remotecontent?filepath=org/codelibs/elasticsearch-dataformat/2.3.0/elasticsearch-dataformat-2.3.0.zip checksums if available ...
Downloading .DONE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@     WARNING: plugin requires additional permissions     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
* java.lang.RuntimePermission getClassLoader
* java.lang.reflect.ReflectPermission suppressAccessChecks
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.

Continue with installation? [y/N]y
Installed dataformat into /usr/share/elasticsearch/plugins/dataformat
marevol commented 8 years ago

Plugin version is different from elasticsearch version. See readme: https://github.com/codelibs/elasticsearch-dataformat#version