Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugins not being loaded #171

Closed
t5unamie opened this issue Dec 18, 2013 · 6 comments
Closed

plugins not being loaded #171

t5unamie opened this issue Dec 18, 2013 · 6 comments

Comments

@t5unamie
Copy link

I perform a opsworks deployment of the Elasticsearch node, I set the plugin values in my data bag as follows.

"elasticsearch": { "plugins" : { "karmi/elasticsearch-paramedic" : { "url" : "https://github.com/karmi/elasticsearch-paramedic/archive/master.zip" }, "lukas-vlcek/bigdesk" : { "url" : "https://github.com/lukas-vlcek/bigdesk/archive/master.zip" } },

The plugins get downloaded and are located inside the following folder

/usr/local/elasticsearch/plugins

ls -lha shows the following

drwxr-xr-x 5 elasticsearch elasticsearch 4.0K Dec 18 16:04 bigdesk
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Dec 18 16:03 cloud-aws
drwxr-xr-x 6 elasticsearch elasticsearch 4.0K Dec 18 16:04 paramedic

I am using version 0.90.4 ES.

The cloud-aws plugin is installed. However the rest are not. Log output is shown below.

...
[2013-12-18 16:02:48,212][INFO ][node                     ] [elasticsearch6.localdomain] initializing ...
[2013-12-18 16:02:48,220][INFO ][plugins                  ] [elasticsearch6.localdomain] loaded [], sites []
[2013-12-18 16:02:51,089][INFO ][node                     ] [elasticsearch6.localdomain] initialized
...
@t5unamie
Copy link
Author

cloud-aws plugin is being loaded. However paramedic and bigdesk are not.

Localhost:9200 output

{
"ok" : true,
"status" : 200,
"name" : "elasticsearch1.localdomain",
"version" : {
"number" : "0.90.4",
"build_hash" : "8cb1a9b3277da34f740c25eb74adc42942ec8bd9",
"build_timestamp" : "2013-09-16T14:11:00Z",
"build_snapshot" : false,
"lucene_version" : "4.4"
},
"tagline" : "You Know, for Search"
}

updated log output

./plugin -install lukas-vlcek/bigdesk
-> Installing lukas-vlcek/bigdesk...
Trying https://github.com/lukas-vlcek/bigdesk/archive/master.zip...
Downloading ......................DONE
Installed lukas-vlcek/bigdesk into /usr/local/elasticsearch/plugins/bigdesk
Identified as a _site plugin, moving to _site structure ...

output from logstash log

[2013-12-19 14:19:42,638][INFO ][node ] [elasticsearch1.localdomain] version[0.90.4], pid[6812], build[8cb1a9b/2013-09-16T14:11:00Z]
[2013-12-19 14:19:42,639][INFO ][node ] [elasticsearch1.localdomain] initializing ...
[2013-12-19 14:19:42,664][INFO ][plugins ] [elasticsearch1.localdomain] loaded [cloud-aws], sites []
[2013-12-19 14:19:46,217][INFO ][node ] [elasticsearch1.localdomain] initialized
[2013-12-19 14:19:46,218][INFO ][node ] [elasticsearch1.localdomain] starting ...
[2013-12-19 14:19:46,361][INFO ][transport ] [elasticsearch1.localdomain] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.0.2.153:9300]}
[2013-12-19 14:19:52,592][INFO ][cluster.service ] [elasticsearch1.localdomain] detected_master [elasticsearch5.localdomain][GSEjBZiATH-iFcfg6oJwkw][inet[/10.0.2.180:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, added {[elasticsearch5.localdomain][GSEjBZiATH-iFcfg6oJwkw][inet[/10.0.2.180:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1},}, reason: zen-disco-receive(from master [[elasticsearch5.localdomain][GSEjBZiATH-iFcfg6oJwkw][inet[/10.0.2.180:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}])
[2013-12-19 14:19:52,747][INFO ][discovery ] [elasticsearch1.localdomain] logstash/-LUImEZ8StOgBxSfnaY3ag
[2013-12-19 14:19:52,753][INFO ][http ] [elasticsearch1.localdomain] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.0.2.153:9200]}
[2013-12-19 14:19:52,754][INFO ][node ] [elasticsearch1.localdomain] started

@t5unamie
Copy link
Author

/usr/local/elasticsearch/plugins/paramedic# ls -lh
total 136K
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Dec 19 12:45 audio
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Dec 19 12:45 css
-rw-r--r-- 1 elasticsearch elasticsearch 97K Dec 19 12:45 elasticsearch-paramedic-screenshot.png
drwxr-xr-x 2 elasticsearch elasticsearch 4.0K Dec 19 12:45 img
-rw-r--r-- 1 elasticsearch elasticsearch 7.5K Dec 19 12:45 index.html
drwxr-xr-x 3 elasticsearch elasticsearch 4.0K Dec 19 12:45 js
-rw-r--r-- 1 elasticsearch elasticsearch 1.1K Dec 19 12:45 MIT-LICENSE
-rw-r--r-- 1 elasticsearch elasticsearch 897 Dec 19 12:45 Rakefile
-rw-r--r-- 1 elasticsearch elasticsearch 4.0K Dec 19 12:45 README.md
root@elasticsearch1:/usr/local/elasticsearch/plugins/paramedic#

@electrical
Copy link

As discussed on IRC. the 0.90.4 release has a bug in the plugin script which doesn't create the _site directory.

In your case you need do the following:

create a directory called '_site' in the /usr/local/elasticsearch/plugins/paramedic folder.
move all the files into that '_site' directory.
Restart Elasticsearch and you should see them being loaded.

@t5unamie
Copy link
Author

THANKS! - Confirmed this is the issue.

Moved all files in the plugins to _sites inside the plugin and resolved the issue.

Regards

John

@karmi
Copy link
Contributor

karmi commented Feb 3, 2014

@t5unamie Closing this then?

@t5unamie
Copy link
Author

yea fixed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants