While trying to install the watcher plugin for elasticsearch 2.3.4 I get the following:
=->bin/plugin install elasticsearch/watcher/latest
-> Installing elasticsearch/watcher/latest...
Trying https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip ...
Downloading ...............................................................................................DONE
Verifying https://download.elastic.co/elasticsearch/watcher/watcher-latest.zip checksums if available ...
Downloading .DONE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: plugin requires additional permissions @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
- java.lang.RuntimePermission getClassLoader
- java.lang.RuntimePermission setContextClassLoader
- java.lang.RuntimePermission setFactory
See http://docs.oracle.com/javase/8/docs/technotes/guides/security/permissions.html
for descriptions of what these permissions allow and the associated risks.
Continue with installation? [y/N]y
Installed watcher into /home/elk/elasticsearch-2.3.4/plugins/watcher
ERROR: Error copying bin directory [/home/elk/elasticsearch-2.3.4/plugins/watcher/bin] to [/home/elk/elasticsearch-2.3.4/bin/watcher], cleaning up, reason: FileSystemException[/home/elk/elasticsearch-2.3.4/bin/watcher: Operation not permitted]
ERROR: /home/elk/elasticsearch-2.3.4/bin/watcher: Operation not permitted