# Problem in starting a node in ES 2.2.1

**URL:** <https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082>\
**Category:** Elasticsearch\
**Created:** [March 22, 2016, 8:38am UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082 "2016-03-22T08:38:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [March 22, 2016, 8:38am UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/1 "2016-03-22T08:38:51Z")

</div>

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](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,**

 ![](https://us1.discourse-cdn.com/elastic/original/2X/3/3abd11c23af8b2ae125687b8fc7b3c7ab81d2875.png)

Please Correct me if I am doing wrong setup configuration.

Thanks,  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 22, 2016, 8:42am UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/2 "2016-03-22T08:42:32Z")

</div>

It's going to be [https://www.elastic.co/guide/en/elasticsearch/reference/2.2/breaking\_20\_setting\_changes.html#\_custom\_config\_file](https://www.elastic.co/guide/en/elasticsearch/reference/2.2/breaking_20_setting_changes.html#_custom_config_file)

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [March 22, 2016, 9:51am UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/3 "2016-03-22T09:51:31Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![r.ganeshbabu](https://avatars.discourse-cdn.com/v4/letter/r/4da419/32.png) [@r.ganeshbabu](https://discuss.elastic.co/u/r.ganeshbabu)\
**Post date:** [March 22, 2016, 10:32am UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/4 "2016-03-22T10:32:09Z")

</div>

Hi @warkolm,

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

Thanks,  
Ganeshbabu R

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 22, 2016, 10:24pm UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/5 "2016-03-22T22:24:54Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 11:06pm UTC](https://discuss.elastic.co/t/problem-in-starting-a-node-in-es-2-2-1/45082/6 "2017-07-05T23:06:06Z")

</div>


