# Difference between using mapper attachments plugin with elasticsearch.bat vs service.bat

**URL:** <https://discuss.elastic.co/t/difference-between-using-mapper-attachments-plugin-with-elasticsearch-bat-vs-service-bat/55004>\
**Category:** Elasticsearch\
**Created:** [July 8, 2016, 12:42am UTC](https://discuss.elastic.co/t/difference-between-using-mapper-attachments-plugin-with-elasticsearch-bat-vs-service-bat/55004 "2016-07-08T00:42:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![totessusan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/totessusan/32/13028_2.png) [@totessusan](https://discuss.elastic.co/u/totessusan)\
**Post date:** [July 8, 2016, 12:42am UTC](https://discuss.elastic.co/t/difference-between-using-mapper-attachments-plugin-with-elasticsearch-bat-vs-service-bat/55004/1 "2016-07-08T00:42:27Z")

</div>

What's the difference between using the mapper attachments plugin with elasticsearch.bat vs service.bat?

Scenario #1 (preferable case): Using service.bat allows me to access localhost:9200 via browser but does not recognize my mapper attachments plugin. [http://localhost:9200/\_cat/plugins?v](http://localhost:9200/_cat/plugins?v) will not list the plugin.

Scenario #2: Using elasticsearch.bat does not allow my to access localhost:9200 via browser but does recognize my mapper attachments plugin. [http://localhost:9200/\_cat/plugins?v](http://localhost:9200/_cat/plugins?v) will list the plugin.

What's the difference other than service.bat is a Windows standalone? Why does one batch file detect the plugin and the other doesn't? How can I get this to work (preferably with service.bat)?

Other info: When doing plugin.bat list, it shows that the mapper attachments plugin is installed. I'm on a Windows 10 machine.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![totessusan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/totessusan/32/13028_2.png) [@totessusan](https://discuss.elastic.co/u/totessusan)\
**Post date:** [July 8, 2016, 1:00am UTC](https://discuss.elastic.co/t/difference-between-using-mapper-attachments-plugin-with-elasticsearch-bat-vs-service-bat/55004/2 "2016-07-08T01:00:39Z")

</div>

From the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-service-win.html): Note that the environment configuration options available during the installation are copied and will be used during the service lifecycle. This means any changes made to them after the installation will not be picked up unless the service is reinstalled.

**Solution: Uninstall service.bat and reinstall.**

---

<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:37pm UTC](https://discuss.elastic.co/t/difference-between-using-mapper-attachments-plugin-with-elasticsearch-bat-vs-service-bat/55004/3 "2017-07-05T22:37:13Z")

</div>

Closed on July 5, 2017, 10:37pm UTC


