# Unable to install Plugin in Elastic Search 2.1

**URL:** <https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081>\
**Category:** Elasticsearch\
**Created:** [December 14, 2015, 2:43am UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081 "2015-12-14T02:43:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![soodlikesjava](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@soodlikesjava](https://discuss.elastic.co/u/soodlikesjava)\
**Post date:** [December 14, 2015, 2:43am UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/1 "2015-12-14T02:43:03Z")

</div>

I am trying to install custom plugin in ES 2.1 using plugin tool in bin/plugin and i am getting exception of plugin descriptor even though plugin-descriptor.properties is available in resources folder of my project and it gets bundled in zip of the plugin.

command :

bin/plugin install file:///Users/git/plugin.zip

Error :

NOTE: Unable to verify checksum for downloaded plugin (unable to find .sha1 or .md5 file to verify)  
ERROR: Could not find plugin descriptor 'plugin-descriptor.properties' in plugin zip

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 14, 2015, 6:14am UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/2 "2015-12-14T06:14:05Z")

</div>

You need to read [https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html](https://www.elastic.co/guide/en/elasticsearch/plugins/current/plugin-authors.html)

---

<div class="post-metadata">

**Author:** ![soodlikesjava](https://avatars.discourse-cdn.com/v4/letter/s/ee7513/32.png) [@soodlikesjava](https://discuss.elastic.co/u/soodlikesjava)\
**Post date:** [December 14, 2015, 10:52pm UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/3 "2015-12-14T22:52:42Z")

</div>

I read that documentation but the documentation does not explain well for plugin-descriptor.properties to be placed outside your plugin jar . Now it is working fine after I verified from PluginManager source code . It would have been better if we were allowed to keep the descriptor in plugin jar only .Thanks for your reply 🙂

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 15, 2015, 7:59am UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/4 "2015-12-15T07:59:27Z")

</div>

I'm afraid I did not understand your issue at first. Reading it again now makes me think that my answer was wrong because you obviously put the descriptor file in the right place.

Which now comes to a question: what was your issue and how did you fix it?

Also, if you think the documentation could be enhanced, feel free to contribute! Would be highly appreciated! 😃

---

<div class="post-metadata">

**Author:** ![fchantrel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fchantrel/32/6204_2.png) [@fchantrel](https://discuss.elastic.co/u/fchantrel)\
**Post date:** [January 19, 2016, 8:34pm UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/5 "2016-01-19T20:34:57Z")

</div>

I got the same problem so for those who will encouter the same problem the solution is to modify your assembly plugin.xml file like this (note the reference to plugin-descriptor.properties) :

```
<?xml version="1.0"?>
<assembly>
    <id>plugin</id>
    <formats>
        <format>zip</format>
    </formats>
    <includeBaseDirectory>false</includeBaseDirectory>
    <files>
        <file>
            <source>${project.basedir}/plugin-metadata/plugin-descriptor.properties</source>
            <outputDirectory></outputDirectory>
            <filtered>true</filtered>
        </file>
    </files>
    <fileSets>
        <fileSet>
            <directory>src/main/config</directory>
            <outputDirectory>config</outputDirectory>
        </fileSet>
        <fileSet>
            <directory>src/main/bin</directory>
            <outputDirectory>bin</outputDirectory>
        </fileSet>
    </fileSets>
    <dependencySets>
        <dependencySet>
            <outputDirectory>/</outputDirectory>
            <useProjectArtifact>true</useProjectArtifact>
            <useTransitiveFiltering>true</useTransitiveFiltering>
            <useTransitiveDependencies>true</useTransitiveDependencies>
        </dependencySet>
    </dependencySets>
</assembly>
```

---

<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:23pm UTC](https://discuss.elastic.co/t/unable-to-install-plugin-in-elastic-search-2-1/37081/6 "2017-07-05T23:23:18Z")

</div>


