Custom URL or file system
A plugin can also be downloaded from a custom location by specifying a URL:
sudo bin/elasticsearch-plugin install [url]
- Must be a valid URL. The plugin name is determined from its descriptor.
- Unix
-
To install a plugin from your local file system at
/path/to/plugin.zip:sudo bin/elasticsearch-plugin install file:///path/to/plugin.zip - Windows
-
To install a plugin from your local file system at
C:\path\to\plugin.zip:bin\elasticsearch-plugin install file:///C:/path/to/plugin.zipNoteAny path that contains spaces must be wrapped in quotes.
NoteIf you install a plugin from the filesystem, the plugin distribution must not be contained in the
pluginsdirectory for the node that you are installing to, or installation will fail. - HTTP
-
To install a plugin from an HTTP URL:
sudo bin/elasticsearch-plugin install <EXAMPLE_PLUGIN_HOST_URL>/plugin.zipThe plugin script refuses to talk to an HTTPS URL with an untrusted certificate. To use a self-signed HTTPS cert, add the CA cert to a local Java truststore and pass the location to the script:
sudo CLI_JAVA_OPTS="-Djavax.net.ssl.trustStore=/path/to/trustStore.jks" bin/elasticsearch-plugin install <MY_HOST_URL>/plugin.zip