# Can we install plugins on an independent Node of Elasticsearch for testing purposes?

**URL:** <https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683>\
**Category:** Elasticsearch\
**Created:** [August 1, 2015, 7:37pm UTC](https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683 "2015-08-01T19:37:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apanimesh061](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apanimesh061/32/927_2.png) [@apanimesh061](https://discuss.elastic.co/u/apanimesh061)\
**Post date:** [August 1, 2015, 7:37pm UTC](https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683/1 "2015-08-01T19:37:40Z")

</div>

I am using a `NodeBuilder` for creation and testing of an index. This runs perfectly fine but I also have to use the `mapper-attachment` plugin as I am indexing PDFs as well. But as soon as I try indexing a PDF document in that node's index, I get `org.elasticsearch.index.mapper.MapperParsingException: No handler for type [attachment] declared on field [pdf_text]`. This is only because this plugin is not installed.

I checked NodeInfo of the temporary node I created it I got `"plugins": []` i.e. no plugins are installed there. Actually it should be:

```
"plugins" : [ {
        "name" : "marvel",
        "version" : "1.3.1",
        "description" : "Elasticsearch Management & Monitoring",
        "url" : "/_plugin/marvel/",
        "jvm" : true,
        "site" : true
      }, {
        "name" : "mapper-attachments",
        "version" : "2.6.0",
        "description" : "Adds the attachment type allowing to parse difference attachment formats",
        "jvm" : true,
        "site" : false
      } ]

```

Any way I could do that?

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 1, 2015, 8:24pm UTC](https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683/2 "2015-08-01T20:24:47Z")

</div>

For Elasticsearch 1.x, it is enough to add jars of the plugin to the classpath to get them loaded.

---

<div class="post-metadata">

**Author:** ![apanimesh061](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apanimesh061/32/927_2.png) [@apanimesh061](https://discuss.elastic.co/u/apanimesh061)\
**Post date:** [August 1, 2015, 9:12pm UTC](https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683/3 "2015-08-01T21:12:09Z")

</div>

Is it possible for you to give a small example on how to do that? I really cannot understand what you mean.

Do I need to specify the path to the jars when I am starting my start my elasticsearch node?

---

<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:57pm UTC](https://discuss.elastic.co/t/can-we-install-plugins-on-an-independent-node-of-elasticsearch-for-testing-purposes/26683/4 "2017-07-05T23:57:53Z")

</div>


