PS C:\Program Files\Elastic\Elasticsearch\7.1.1\bin> .\elasticsearch
An exception occurred while trying to start elasticsearch.: System.UnauthorizedAccessException: Access to the path 'C:\Program Files\Elastic\Elasticsearch\7.1.1\logs' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at System.IO.Abstractions.DirectoryWrapper.CreateDirectory(String path)
at Elastic.ProcessHosts.Elasticsearch.Process.ElasticsearchProcess.Start()
at Elastic.ProcessHosts.Service.Service.Run()
at Elastic.ProcessHosts.Elasticsearch.Program.Main(String[] args)
Elasticsearch.exe does not have permission to write exception to event log
You need to have admin permissions to start elasticsearch, or the user with which you're starting elasticsearch must have access to C:\Program Files\Elastic\Elasticsearch\7.1.1\logs.
What parameters did you use to install Elasticsearch? Specifically, did you choose to install Elasticsearch as a service and if so, what credentials did you choose to run the service?
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.