How to install Marvel on Elasticsearch 2.1.1


(Pradeep Kumar) #1

I have installed Elasticsearch on Windows 7 and I am working on command prompt started as "Run as Administrator"

I started following the video "Getting started with Elasticsearch" on Elasticsearch tutorial web site. The video seems to be out of date w.r.t the latest version which is 2.1.1. the video shows how to install marvel. But I tried the same command but I am facing many issues:

  1. There is no "-i" option anymore so I had to give "install" option.
  2. I executed the command "plugin install elasticsearch/marvel/latest --verbose", but I am getting the following errors:

-> Installing elasticsearch/marvel/latest...
Trying https://download.elastic.co/elasticsearch/marvel/marvel-latest.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://search.maven.org/remotecontent?filepath=elasticsearch/marvel/latest/marvel-latest.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://oss.sonatype.org/service/local/repositories/releases/content/elasticsearch/marvel/latest/marvel-latest.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/elasticsearch/marvel/archive/latest.zip ...
Failed: SocketTimeoutException[connect timed out]
Trying https://github.com/elasticsearch/marvel/archive/master.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information

I have tried to set the proxy at the command line by executing "set http_proxy=proxy.name:8080". except one thread in Stackoverflow.com, I have not found mention of this error and its solution anywhere. Can anybody help me understand and fix this issue please?


(Mark Walkom) #2

Per https://www.elastic.co/guide/en/marvel/current/installing-marvel.html;

sudo bin/plugin install license
sudo bin/plugin install marvel-agent

(Pradeep Kumar) #3

As mentioned in my post, I am using Elasticsearch on Windows 7. I executed the following command, but I am getting similar error

D:\ElasticSearch\bin>plugin install license --verbose
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.1.1/license-2.1.1.zip ...
Failed: SocketTimeoutException[connect timed out]
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information


(David Pilato) #4

Probably you are running behind a proxy or so?


(Mark Walkom) #5

Yeah, just cause you are on Windows doesn't mean you have different commands.


(Pradeep Kumar) #6

If you read my original post, I have mentioned about setting up the proxy server. I am behind proxy server, but I mentioned the proxy server through settings. It has not helped me either.


(David Pilato) #7

Read this: https://www.elastic.co/guide/en/elasticsearch/plugins/current/_other_command_line_parameters.html#_proxy_settings


(Pradeep Kumar) #8

I have tried setting up the proxy as mentioned on the URL you have mentioned, but I am still getting the error. This problem seems to be with downloading the .zip file through command prompt, because if I try to download (by pasting the .zip url on address bar) through the web browser, then I am able to download. Any other suggestion? . Thanks.


(David Pilato) #9

It's because your browser has the proxy setup correctly I guess.

You can install the plugin manually once you have downloaded it:

bin/plugin install file:path/to/plugin.zip

(Pradeep Kumar) #10

I tried to install from the .zip file, but it seems there are other supporting .zip files which it tries to download from the internet and fails with the error messages for the supporting files. In this case, the error relates to missing files, not the error "Failed: SocketTimeoutException[connect timed out]". I am pasting the entire output below. So, this time the error seems to be that of a missing file. (I copied the license-2.1.1.zip file in the bin folder).

D:\ElasticSearch\bin>plugin install license-2.1.1.zip
-> Installing license-2.1.1.zip...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license-2.1.1.zip/2.1.1/license-2.1.1.zip-2.1.1.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information


(Mark Walkom) #11

Please, read the docs.

They explicitly tell you what you need to.


(David Pilato) #12

Yeah as I wrote, don't forget file:


(Pradeep Kumar) #13

Thank you so much dadoonet. Your instruction on installing from .zip file was correct. I was doing the mistake of not including 'file:' in my command. After I included 'file:' in the command, it started working without any error. I have now installed marvel from .zip file as instructed in the URL given by warkolm. Thank you once again to all of you work helping me :slight_smile:


(Pavel Zacek) #14

I am solving the same problem. I mean installing marvel plugin2.1.1 on windows 7 without connectivity but without success. I tried different variation of path to zip file i.e.

plugin install -v file:///c:\pracovni\ElasticSearch\2.1.1\plugins\license-2.1.1.zip

response is:

Downloading .DONE
Verifying file:/c:/pracovni/ElasticSearch/2.1.1/plugins/license-2.1.1.zip checks
ums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .
md5 file to verify)

  • Plugin information:
    Name: license
    Description: Internal Elasticsearch Licensing Plugin
    Site: false
    Version: 2.1.1
    JVM: true
  • Classname: org.elasticsearch.license.plugin.LicensePlugin
  • Isolated: false
    ERROR: c:\pracovni\ElasticSearch\2.1.1\plugins\license-2.1.1.zip\plugin-descriptor.properties

Thanks for advice. Pavel


(Mark Walkom) #15

Please start your own thread, this appears to be a different problem.


(system) #16