Did you install is as a service using APT or YUM, or just by downloading the files directly? And how did you try to start Elastic, again as a service, or just by running the binary file directly?
Reason I ask is because the when installed as a service, but then starting manually, you need to tell Elastic where the path is like this:
Sorry for my basic qs as Im a novice in this field.
I used apt to install .
Ran sudo -u elasticsearch bin/elasticsearch -Des.path.conf=/etc/elasticsearch
and got below...Not sure where to look for log
Exception in thread "main" ElasticsearchException[Failed to load logging configu ration]; nested: AccessDeniedException[/etc/elasticsearch];
Likely root cause: java.nio.file.AccessDeniedException: /etc/elasticsearch
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84 )
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemPr ovider.java:427)
at java.nio.file.Files.newDirectoryStream(Files.java:457)
at java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
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(LogC onfigurator.java:103)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:243)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)
Refer to the log for complete error details.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.