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 (startES_master.sh) to start master node,

!/bin/sh
export ES_INCLUDE=/opt/esadmin/elasticsearch-2.2.1/bin/elasticsearch.poc.sh
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 startES_master.sh
log4j:WARN No appenders could be found for logger (bootstrap).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig 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(Security.java:340)
at org.elasticsearch.bootstrap.Security.addPath(Security.java:314)
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:247)
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212)
at org.elasticsearch.bootstrap.Security.configure(Security.java:118)
at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:196)
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:167)
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:285)
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

path.conf setup in master yml file,

Please Correct me if I am doing wrong setup configuration.

Thanks,
Ganeshbabu R

It's going to be https://www.elastic.co/guide/en/elasticsearch/reference/2.2/breaking_20_setting_changes.html#_custom_config_file

@warkolm

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?

Thanks,
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.