Elasticsearch 2.2 : Cant install marvel plugin - elasticsearch

I am trying to install the marvel sense plugin for ES and Kibana on windows. I have ES version 2.2.0 and Kibana version 4.4.0
Here is what i tried to do
For ES
plugin install license
i get
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugi
n/license/2.2.0/license-2.2.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get
detailed information
i also tried
plugin install marvel-agent
but i get
-> Installing marvel-agent...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugi
n/marvel-agent/2.2.0/marvel-agent-2.2.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get
detailed information
For Kibana, i knew it wasn't going to work but still
i tried
plugin --install elasticsearch/marvel/latest
and i get
Installing marvel
Attempting to transfer from https://download.elastic.co/elasticsearch/marvel/mar
vel-latest.tar.gz
Error: Client request error: connect ETIMEDOUT
Plugin installation was unsuccessful due to error "Client request error: connect
ETIMEDOUT"
has anyone faced similar issues? Any help would be appreciated. I did not face these problems for ES 2.1 and Kibana 4.3
I downloaded everything from the ES website.
Edit
The offline installation as mentioned on
https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#offline-installation
works for ES but not for Kibana. It complains of an invalid url.

For each of your failures in which it recommends using --verbose, upon doing so you should see FileNotFoundException for the URL from which it attempts to download.
However, I just now installed Marvel for Elasticsearch 2.2.0 on a Windows machine, using the same command as you:
...\elasticsearch-2.2.0\bin>plugin install license
As you can see, the URL it attempts to use matches yours, so the package should be available.
-> Installing license...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.2.0.zip ...
Downloading .......DONE
Verifying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/license/2.2.0/license-2.2.0.zip checksums if available ...
Downloading .DONE
Installed license into C:\Elasticsearch\elasticsearch-2.2.0\plugins\license
Are you issuing the command from \bin?

This command doesn't seem to work well behind a proxy and the usual http_proxy environment variable doesn't seem to take here.
According to this link, there are parameters you can set to specify proxy settings, but the command there is setup for marvel 1.x. The command below worked for me:
./bin/plugin -DproxyPort=port_number -DproxyHost=hostname install license
More information can also be found in the elasticsearch documentation here

Related

Logstash - Offline Plugin Installation

I have tried searching on various internet forums about the offline installation of Logstash plugins, but haven't found the solution that we can implement.
What I want to achieve is:
Install the following two logstash plugins:
logstash-filter-mutate-master
logstash-filter-aggregate-master
My Limitations Are:
At my company, there is strictly no Internet connectivity on Linux servers. Therefore, I need a solution where I could download some off-the-shelf package on my Windows machine, and then unpack it on the Linux machine, which would install the plugins I require.
I have looked at the Logstash documentation, which advises on how to install plugins offline, but that also needs a 'Staging' server which has logstash source-code and has Internet connectivity - the latter is non-existent in my organisation.
I would greatly appreciate if you could advise how to approach this. At present, when I try to install the 'mutate' plugin, here's the error I see:
$ bin/logstash-plugin install --local --no-verify
Installing...
Plugin not found, aborting
ERROR: Installation Aborted, message: Could not find gem 'ci_reporter_rspec (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.
Thank you.
If you want to install a logstash plugin in offline.
First way ;
You must change gemfile in logstash directory. As an example, download plugin source in somewhere of your logstash directory then modify gemfile in logstash directory with plugin name and path.
gem "logstash-input-example-plugin", :path => "./plugins/logstash-input-example-plugin"
After that just run the below command
bin/logstash-plugin install --no-verify
You can follow this link :
https://www.tutorialspoint.com/logstash/logstash_plugins.htm
Second way; using with gem file of the plugin. As an example;
bin/logstash-plugin install /path/to/logstash-output-kafka-1.0.0.gem
You can follow this link :
https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html

Does Elasticsearch version 5.1.1 or later support the LIRE plugin?

Does Elasticsearch version 5.0 or later support the LIRE plugin?
If support LIRE plugin, how to install LIRE plugin?(in ubuntu)
I try to two way, and get error messages:
Running:
sudo bin/elasticsearch-plugin install com.github.kzwang/elasticsearch-image/1.2.0
I've the error below:
ERROR: Unknown plugin com.github.kzwang/elasticsearch-image/1.2.0
Running:
sudo bin/elasticsearch-plugin install https://github.com/kzwang/elasticsearch-image.git
The error message is:
ERROR: 'elasticsearch' directory is missing in the plugin zip
How do I install the plugin?
Apparently this plugin has not been updated for 2.x and 5.x.
https://github.com/kzwang/elasticsearch-image/issues/19
IMO it would be better to rewrite this as an ingest plugin for elasticsearch. Would be a great addition IMO.
But to answer to your question, I don't think you can find an easy workaround for now.

Marvel plugin not finding .properties file

I've been stuck on this for about a day. I downloaded and installed ElasticSearch 2.3.3 on my redhat vm. I am trying to follow the get started video on the site but not one of the installation commands from the video has worked for me, so I've tried following installation methods from the guide.
I downloaded the rpm and entered the following commands to install:
cd /usr/share/elasticsearch
bin/plugin -DproxyHost=... -DproxyPort=... install license
bin/plugin -DproxyHost=... -DproxyPort=... install marvel-agent
I then started my ElasticSearch node and went to localhost:9200/_plugin/marvel but nothing popped up.
I then thought it might be because I only downloaded the agent and not marvel, so I tried installing marvel from the cmd line, but I constantly getting a FileNotFound exception
bin/plugin -DproxyHost=... -DproxyPort=... install marvel
I then manually downloaded marvel-2.3.3.tar.gz and tried installing it manually
bin/plugin -DproxyHost=... -DproxyPort=... install --verbose file://.../marvel-2.3.3.tar.gz
but I'm told the zip is missing a plugin-descriptor.properties file
Verifying file:/home1/isuser/Downloads/marvel-2.3.3.tar.gz 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
I then unzipped marvel-2.3.3.tar, added a .properties file, rezipped, and reinstalled. still got the same error.
I really need some help. This is very frustrating. I still need to install Kibana but if that installation is anything near as infuriating as this one I'm not looking forward to it...
EDIT:
I got past this error by moving the .properties file from within the marvel directory to the same level, but now I'm getting a new error. it keeps giving me a FileNotFoundException.
[root#den01ejm elasticsearch]# bin/plugin install -DproxyHost=www-proxy.us.oracle.com -DproxyPort=80 --verbose /home1/isuser/Desktop/up/marvel-2.3.3.tar.gz
-> Installing /home1/isuser/Desktop/up/marvel-2.3.3.tar.gz...
Trying https://download.elastic.co//home1/home1-isuser.zip ...
Failed: FileNotFoundException[https://download.elastic.co//home1/home1-isuser.zip]; nested: FileNotFoundException[https://download.elastic.co//home1/home1-isuser.zip];
Trying https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip ...
Failed: FileNotFoundException[https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip]; nested: FileNotFoundException[https://search.maven.org/remotecontent?filepath=/home1/isuser/home1-isuser.zip];
Trying https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip ...
Failed: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip]; nested: FileNotFoundException[https://oss.sonatype.org/service/local/repositories/releases/content//home1/isuser/home1-isuser.zip];
Trying https://github.com//home1/archive/isuser.zip ...
Failed: FileNotFoundException[https://github.com//home1/archive/isuser.zip]; nested: FileNotFoundException[https://github.com//home1/archive/isuser.zip];
Trying https://github.com//home1/archive/master.zip ...
Failed: FileNotFoundException[https://github.com//home1/archive/master.zip]; nested: FileNotFoundException[https://github.com//home1/archive/master.zip];
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
cd /usr/share/elasticsearch
bin/plugin -DproxyHost=... -DproxyPort=... install license
bin/plugin -DproxyHost=... -DproxyPort=... install marvel-agent
This is all that needs to be installed in Elasticsearch 2.x to make Marvel monitor Elasticsearch. The Marvel Agent monitors the node, with a dependency on the license plugin, then ships the data where ever it's configured to go (to the same node, by default).
The third plugin that you're trying to install is the Marvel UI component. Starting with ES 2.x, the UI component is a part of Kibana and not Elasticsearch.
As such, you should be installing that plugin in Kibana. As you are trying to use Marvel 2.3.3, you should be using Kibana 4.5 (so Kibana 4.5.1 as of now). From Kibana, you can install it there:
bin/kibana plugin --install elasticsearch/marvel/latest
NOTE: The syntax of the plugin commands will change in Elasticsearch 5.x and Kibana 5.x and this will be greatly simplified to literally being the same file for both Elasticsearch and Kibana, but both applications will still be needed for both sides: monitoring and the UI.
bin/elasticsearch-plugin install x-pack
bin/kibana-plugin install x-pack

Elasticsearch : Marvel and Sense Plugin Installation does not work

I have tried the online and offline instructions for installing marvel and sense, but nothing works. I have ES 2.2.1 and Kibana 4.4.2
I tried
plugin install marvel-agent
but i get
Installing marvel-agent...
Trying https://download.elastic.co/elasticsearch/release/org/elasticsearch/plugin/marvel-agent/2.2.0/marvel-agent-2.2.0.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information
same error for
bin/plugin install license
bin/kibana plugin --install elasticsearch/marvel/latest
so then i tried downloading the files and follow instructions on
https://www.elastic.co/guide/en/marvel/current/installing-marvel.html#offline-installation
i tried
plugin install file:///C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip
but i get
-> Installing from file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip...
Trying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip ...
Downloading ..DONE
Verifying file:/C:/Users/xyz/ElasticSearch/zips/marvel-agent-2.2.0.zip checksums if available ...
NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)
same for
plugin install file:///C:/Users/xyz/ElasticSearch/zips/license-2.2.0.zip
and finally for
kibana plugin --install marvel --url file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
i get
Installing marvel
Attempting to transfer from file:///C:/Users/xyz/ElasticSearch/zips/marvel-2.2.0.tar.gz
Error: ENOTFOUND
Plugin installation was unsuccessful due to error "No valid url specified."
Please point out what i am doing wrong.
For me, the last installation instruction required a different format for the url.
file://c:/Temp/ElasticSearch/marvel-2.2.1.tar.gz. Basically, remove one of the forward slashes.
download the Sense tar file from the following link: https://download.elasticsearch.org/elastic/sense/sense-latest.tar.gz
open cmd form kibana\bin location
then you can install Sense using the following command:
kibana plugin -i sense -u file:PATH_TO_SENSE_TAR_FILE

Elasticsearch 2.1: Cannot install Marvel into Kibana

I am a newbie to the ES world and just trying to get my local environment set up.
I am using a Mac and I used Homebrew to install Elasticsearch and Kibana.
Now I want to add Marvel to Kibana but it fails with the following error:
user :/usr/local/opt/kibana/(master)$ bin/kibana plugin --install elasticsearch/marvel/latest
Installing marvel
Attempting to extract from https://download.elastic.co/elasticsearch/marvel/marvel-latest.tar.gz
Downloading 3843924 bytes....................
Extraction complete
Optimizing and caching browser bundles...
Plugin installation was unsuccessful due to error "Cannot find module 'bluebird'"
Unfortunately I haven't found any solution yet.
Maybe you guys have an idea how to solve this?
Cheers,
Stefan
I met the same problem and solved by installing kibana not from homebrew.
--> Check here: https://github.com/elastic/sense/issues/93

Resources