how to install plugin/head for elastic search?

49k Views Asked by At

I have installed elastic search and its plugin head but when i enter the

 **url 
"localhost:9200/_plugin/head/"**

It does not shows any thing?

And I have also install marvel/SENSE for monitoring purpose. I have installed plugin/head using

sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head

But its also not working . Error: console not found on url http://www.elasticsearch.org/guide/en/elasticsearch/guide/current/sense_widget.html?snippets/010_Intro/10_Info.json

BTW I am new to elastic search. So if you could tell me why it is not showing anything or have i made any mistake.

Thank in advance!

8

There are 8 best solutions below

0
On

You can also run elastic-search head as a chrome extension "ElasticSearch Head". Click the extension icon in the toolbar of your web browser after installing.

1
On

If you are on Ubuntu 16.04 or any other version, This command will surely run,

elasticsearch/bin/plugin install -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head

0
On

You can create systemd unit with npm run start. Like this:

[Unit]
Description=Elasticsearch-head
After=syslog.target
After=network.target

[Service]
ExecStart=/usr/bin/npm run start
WorkingDirectory=/usr/share/elasticsearch/elasticsearch-head
Restart=always
StandardOutput=syslog
StandardError=syslog
User=user
Group=user

[Install]
WantedBy=multi-user.target
0
On

Updating the already existing answers for CentOS/RHEL 7.

Since v5.x the ElasticSearch Head plugin is deprecated and es-head must be run as a standalone server. Here's how to install on CentOS/RHEL 7.

First, install Node.js and Git.

Then run these commands:

git clone git://github.com/mobz/elasticsearch-head.git
cd elasticsearch-head
npm install
npm run start

Assuming that your ES installation runs on http://localhost:9200/, you can now access es-head on http://localhost:9100/.

2
On

If someone tries with version 5 or else:

  • for Elasticsearch 5.x: plugins are not supported. Run elasticsearch-head as a standalone

  • for Elasticsearch 2.x – 4.x: sudo elasticsearch/bin/plugin install mobz/elasticsearch-head

  • for Elasticsearch 1.x: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/1.x
  • for Elasticsearch 0.9: sudo elasticsearch/bin/plugin -install mobz/elasticsearch-head/0.9

From GitHub

0
On

If you have to use proxy to access external websites, you can the following command to install it:

bin/plugin -i -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head
0
On

The following are what I used on my Ubuntu 14.04 elasticsearch 2.0.0. instead of -i, you need to use the word install ( without dash )

with proxy:

/opt/elasticsearch/bin/plugin install -DproxyPort=80 -DproxyHost=www.example.com mobz/elasticsearch-head

without proxy:

/opt/elasticsearch/bin/plugin install mobz/elasticsearch-head
4
On

I've just installed ES using 1.4.4. on windows. Please check if you've got the confirmation that the plugging is installed. Also double check your commands. See below.

enter image description here