upgrade-node.asciidoc 1.3 KB

123456789101112131415161718192021222324252627282930
  1. To upgrade using a <<deb,Debian>> or <<rpm,RPM>> package:
  2. * Use `rpm` or `dpkg` to install the new package. All files are
  3. installed in the appropriate location for the operating system
  4. and Elasticsearch config files are not overwritten.
  5. To upgrade using a zip or compressed tarball:
  6. .. Extract the zip or tarball to a _new_ directory. This is critical if you
  7. are not using external `config` and `data` directories.
  8. .. Set the `ES_PATH_CONF` environment variable to specify the location of
  9. your external `config` directory and `jvm.options` file. If you are not
  10. using an external `config` directory, copy your old configuration
  11. over to the new installation.
  12. .. Set `path.data` in `config/elasticsearch.yml` to point to your external
  13. data directory. If you are not using an external `data` directory, copy
  14. your old data directory over to the new installation. +
  15. +
  16. --
  17. IMPORTANT: If you use {monitoring}, re-use the data directory when you upgrade
  18. {es}. Monitoring identifies unique {es} nodes by using the persistent UUID, which
  19. is stored in the data directory.
  20. --
  21. .. Set `path.logs` in `config/elasticsearch.yml` to point to the location
  22. where you want to store your logs. If you do not specify this setting,
  23. logs are stored in the directory you extracted the archive to.