deepak
deepak

Reputation: 253

how to install plugin/head for elastic search?

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!

Upvotes: 23

Views: 49355

Answers (8)

Win32Sector
Win32Sector

Reputation: 73

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

Upvotes: 0

Abhishek Chauhan
Abhishek Chauhan

Reputation: 39

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

Upvotes: 0

dr_
dr_

Reputation: 2302

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/.

Upvotes: 2

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.

Upvotes: 0

adam
adam

Reputation: 921

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

Upvotes: 20

Vincent P
Vincent P

Reputation: 821

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

Upvotes: 3

shifu.zheng
shifu.zheng

Reputation: 711

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

Upvotes: 0

Charith De Silva
Charith De Silva

Reputation: 3730

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

Upvotes: 12

Related Questions