Access Denied while starting elastic search

My elasticsearch-6.4.2 instance was running successfully on Windows 7, until yesterday before I shutdown the windows without shutting down the elastic search instance that was running. Now I am getting 'Access is denied' while trying to start elastic search by running elasticsearch.bat. I am fairly new to it. Any help will be appreciated.


Posting the full error, in text, would be ideal.

This is what I can find from the bitdefender which is blocking the running
On-Access scanning has detected an execution of a malicious command line. The process
C:\Program Files\Java\jdk1.8.0_101\bin\java.exe was blocked because of the execution of a malicious command line
-Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djna.nosys=true
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data
-XX:ErrorFile=logs/hs_err_pid%p.log -XX:+PrintGCDetails
-XX:+PrintGCDateStamps -XX:+PrintTenuringDistribution
-XX:+PrintGCApplicationStoppedTime -Xloggc:logs/gc.log
-XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=32
-cp "C:\elasticsearch-6.4.2\lib*" "org.elasticsearch.bootstrap.Elasticsearc

It sounds like this is a problem with your Bitdefender installation. You should configure it to permit Elasticsearch to run.

Digging deeper I found bitdefender is blocking the running of elastic search due the system property
So I had to comment it on jvm.options under the config folder to make it to run.
is there any severe impact on commenting this property?

It does not sound like a good idea. Your cluster stability may suffer. We do not test this configuration, so it isn't supported. I have linked the discussion around why it was introduced below. The correct thing to do is to fix bitdefender to permit this setting.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.