2015-11-08 06:59:07 -05:00
[[breaking_20_plugin_and_packaging_changes]]
2015-08-14 14:26:06 -04:00
=== Plugin and packaging changes
==== Symbolic links and paths
Elasticsearch 2.0 runs with the Java security manager enabled and is much more
restrictive about which paths it is allowed to access. Various paths can be
configured, e.g. `path.data`, `path.scripts`, `path.repo`. A configured path
may itself be a symbolic link, but no symlinks under that path will be
2015-11-18 07:47:31 -05:00
followed.
2015-08-14 14:26:06 -04:00
2015-11-03 22:56:06 -05:00
==== Running `bin/elasticsearch`
2015-08-14 14:26:06 -04:00
The command line parameter parsing has been rewritten to deal properly with
spaces in parameters. All config settings can still be specified on the
command line when starting Elasticsearch, but they must appear after the
built-in "static parameters", such as `-d` (to daemonize) and `-p` (the PID path).
For instance:
[source,sh]
-----------
2015-11-03 22:56:06 -05:00
bin/elasticsearch -d -p /tmp/foo.pid --http.cors.enabled=true --http.cors.allow-origin='*'
2015-08-14 14:26:06 -04:00
-----------
2015-11-03 22:54:40 -05:00
For a list of static parameters, run `bin/elasticsearch -h`
2015-08-14 14:26:06 -04:00
==== `-f` removed
The `-f` parameter, which used to indicate that Elasticsearch should be run in
the foreground, was deprecated in 1.0 and removed in 2.0.
==== `V` for version
2016-02-04 10:00:55 -05:00
The `-v` parameter now means `--verbose` for both `bin/elasticsearch-plugin` and
2015-08-14 14:26:06 -04:00
`bin/elasticsearch` (although it has no effect on the latter). To output the
version, use `-V` or `--version` instead.
==== Plugin manager should run as root
The permissions of the `config`, `bin`, and `plugins` directories in the RPM
and deb packages have been made more restrictive. The plugin manager should
be run as root otherwise it will not be able to install plugins.
==== Support for official plugins
Almost all of the official Elasticsearch plugins have been moved to the main
`elasticsearch` repository. They will be released at the same time as
Elasticsearch and have the same version number as Elasticsearch.
Official plugins can be installed as follows:
[source,sh]
---------------
2016-02-04 10:00:55 -05:00
sudo bin/elasticsearch-plugin install analysis-icu
2015-08-14 14:26:06 -04:00
---------------
Community-provided plugins can be installed as before.
2015-11-09 06:17:02 -05:00
==== Plugins require descriptor file
All plugins are now required to have a https://github.com/elastic/elasticsearch/blob/2.0/dev-tools/src/main/resources/plugin-metadata/plugin-descriptor.properties[plugin-descriptor.properties] file. If a node has a plugin installed which lacks this file, it will be unable to start.
2015-10-30 03:46:31 -04:00
==== Repository naming structure changes
Elasticsearch 2.0 changes the way the repository URLs are referenced. Instead
of specific repositories for both major and minor versions, the repositories will
use a major version reference only.
The URL for apt packages now uses the following structure;
[source,sh]
---------------
deb http://packages.elastic.co/elasticsearch/2.x/debian stable main
---------------
And for yum packages it is;
[source,sh]
---------------
baseurl=http://packages.elastic.co/elasticsearch/2.x/centos
---------------
The <<setup-repositories, repositories>> page details this change.