Package Details: elasticsearch2 2.4.6-1

Git Clone URL: https://aur.archlinux.org/elasticsearch2.git (read-only, click to copy)
Package Base: elasticsearch2
Description: Distributed RESTful search engine built on top of Lucene
Upstream URL: https://www.elastic.co/products/elasticsearch
Licenses: Apache
Conflicts: elasticsearch
Provides: elasticsearch=2.4.6
Submitter: lautat
Maintainer: lautat
Last Packager: lautat
Votes: 9
Popularity: 0.000000
First Submitted: 2016-11-03 13:45
Last Updated: 2017-08-02 15:52

Required by (8)

Sources (7)

Latest Comments

Synthead commented on 2019-12-30 17:27

Looks like this package requires jre8-openjdk-headless to run. This should probably be updated to require this package and use its $JAVA_HOME in /usr/lib/systemd/system/elasticsearch.service.

Also, I see this in the logs when starting elasticsearch.service:

systemd[1]: elasticsearch.service: Can't open PID file /run/elasticsearch/elasticsearch.pid (yet?) after start: Operation not permitted

Synthead commented on 2019-12-30 17:08

I'm getting this error when trying to start elasticsearch2.service:

systemd[1]: Starting Elasticsearch...
elasticsearch[16638]: Unrecognized VM option 'UseParNewGC'
elasticsearch[16638]: Error: Could not create the Java Virtual Machine.
elasticsearch[16638]: Error: A fatal exception has occurred. Program will exit.
systemd[1]: elasticsearch.service: Control process exited, code=exited, status=1/FAILURE
systemd[1]: elasticsearch.service: Failed with result 'exit-code'.
systemd[1]: Failed to start Elasticsearch.

phcerdan commented on 2017-11-16 06:42

Getting not found config error when executing `elasticsearch`: (service is enabled).
I have the config files (yml) in /etc/elasticsearch, but all the rest is in /usr/share/elasticsearch.

Exception in thread "main" ElasticsearchException[Failed to load logging configuration]; nested: NoSuchFileException[/usr/share/elasticsearch/config];
Likely root cause: java.nio.file.NoSuchFileException: /usr/share/elasticsearch/config
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55)
at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
at java.nio.file.Files.readAttributes(Files.java:1737)
at java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:225)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276)
at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322)
at java.nio.file.Files.walkFileTree(Files.java:2662)
at org.elasticsearch.common.logging.log4j.LogConfigurator.resolveConfig(LogConfigurator.java:142)
at org.elasticsearch.common.logging.log4j.LogConfigurator.configure(LogConfigurator.java:103)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:259)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:45)
Refer to the log for complete error details.