Problem in starting a node in ES 2.2.1

Hi All,

I installed Elasticsearch 2.2.1 version in DEV server and configured 3 yml files like (elasticsearch-poc-master.yml, elasticsearch-poc-data.yml & elasticsearch-poc-client.yml).
Below is the command details used in shell file ( to start master node,

export ES_INCLUDE=/opt/esadmin/elasticsearch-2.2.1/bin/
export ES_HEAP_SIZE=8g
./elasticsearch -Des.path.conf=/opt/esadmin/elasticsearch-2.2.1/config/elasticsearch_poc_master.yml

Below is the response which I got when I start the master node,
[esadmin@dayrhebfmd001 bin]$ sh
log4j:WARN No appenders could be found for logger (bootstrap).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See for more info.
Exception in thread "main" java.lang.IllegalStateException: Unable to access 'path.conf' (/opt/esadmin/elasticsearch-2.2.1/config/elasticsearch-poc-master.yml)
Likely root cause: java.nio.file.NotDirectoryException: /opt/esadmin/elasticsearch-2.2.1/config/elasticsearch-poc-master.yml
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(
at org.elasticsearch.bootstrap.Security.addPath(
at org.elasticsearch.bootstrap.Security.addFilePermissions(
at org.elasticsearch.bootstrap.Security.createPermissions(
at org.elasticsearch.bootstrap.Security.configure(
at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(
at org.elasticsearch.bootstrap.Bootstrap.setup(
at org.elasticsearch.bootstrap.Bootstrap.init(
at org.elasticsearch.bootstrap.Elasticsearch.main(

path.conf setup in master yml file,

Please Correct me if I am doing wrong setup configuration.

Ganeshbabu R

It's going to be


Is the above configuration in yml which I setup is right or not?

Could you please explain us and I am getting confused with the reference link.

Hi @warkolm,

Could you please tell me what is the error I made in the configuration setup?

Ganeshbabu R

From the docs;

It is no longer possible to specify a custom config file with the CONF_FILE environment variable, or the -Des.config, -Des.default.config, or -Delasticsearch.config parameters.

Instead, the config file must be named elasticsearch.yml and must be located in the default config/ directory, unless a custom config directory is specified.