简体   繁体   中英

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!

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

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.

在此处输入图片说明

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

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

如果必须使用代理访问外部网站,可以使用以下命令进行安装:

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

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.

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM