# How to create node client in Elastic search 2.3.1

**URL:** <https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030>\
**Category:** Elasticsearch\
**Created:** [April 21, 2016, 11:15am UTC](https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030 "2016-04-21T11:15:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gopin4hat7ash](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gopin4hat7ash](https://discuss.elastic.co/u/gopin4hat7ash)\
**Post date:** [April 21, 2016, 11:15am UTC](https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030/1 "2016-04-21T11:15:41Z")

</div>

We are trying to create the node client in Elastic search 2.3.1.  
Please let me know the procedure

We tried as below

node = nodeBuilder().settings(  
Settings.settingsBuilder() .put("[node.name](http://node.name)", "tb\_es\_indexer")  
.put("path.home", "/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/")  
.put("path.conf", "/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/config")  
.put("path.plugins", "/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/plugins")  
.build()).node();

but it throws the error that it cant load the jars in module folder

Caused by: java.lang.IllegalStateException: failed to load bundle [file:/D:/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/modules/lang-expression/antlr4-runtime-4.5.1-1.jar, file:/D:/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/modules/lang-expression/asm-5.0.4.jar, file:/D:/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/modules/lang-expression/asm-commons-5.0.4.jar, file:/D:/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/modules/lang-expression/lang-expression-2.3.1.jar, file:/D:/app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/modules/lang-expression/lucene-expressions-5.5.0.jar] due to jar hell

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [April 22, 2016, 4:40pm UTC](https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030/2 "2016-04-22T16:40:10Z")

</div>

what do your dependencies look like in your pom file, assuming you are using maven?

---

<div class="post-metadata">

**Author:** ![gopin4hat7ash](https://avatars.discourse-cdn.com/v4/letter/g/a88e57/32.png) [@gopin4hat7ash](https://discuss.elastic.co/u/gopin4hat7ash)\
**Post date:** [April 23, 2016, 10:50am UTC](https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030/3 "2016-04-23T10:50:18Z")

</div>

Hi Java

In our code, we used the ivy to manage the dependancy and it contains all the dependancy  
We placed the elastic search folder in location /app\_dirs/mpt/common\_apps/elasticsearch-2.3.1/

While we tried to run the junit by creating the nodeclient , path.home is required to create the client but we faced some issue to load the kuromoji plugin (under plugin folder) and groovy jars(under modules folder) and we tried by above code.

Whether we can create the node client without the path.home directory structure  
We can able to load the config , plugins, data folder except modules folder

---

<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, 10:56pm UTC](https://discuss.elastic.co/t/how-to-create-node-client-in-elastic-search-2-3-1/48030/4 "2017-07-05T22:56:50Z")

</div>


