# Using Embedded version of elastic gives this warning?

**URL:** https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299
**Category:** Elasticsearch
**Created:** [May 2, 2017, 5:14pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299 "2017-05-02T17:14:47Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 2, 2017, 5:14pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/1 "2017-05-02T17:14:47Z")

</div>

version [5.3.2-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production

I was not getting this in 5.2.2

Is there a work around?

---

<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: [May 3, 2017, 5:55am UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/2 "2017-05-03T05:55:54Z")

</div>

We don't release snapshots for production use, use the GA release.  
Where did you get that version?

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 3, 2017, 4:09pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/3 "2017-05-03T16:09:16Z")

</div>

What is the Maven pom look like?

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 3, 2017, 6:42pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/4 "2017-05-03T18:42:26Z")

</div>

You get that on any snapshot build, and we do not support embedded Elasticsearch.

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 3, 2017, 7:06pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/5 "2017-05-03T19:06:00Z")

</div>

OK then I think the message is correct if I am using Embedded Elastic right?

I just want to make sure I am not pointing to the wrong SNAPSHOT version.  
Can I "mvn clean install" to try to remove it and get the right Embedded  
build?

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 4, 2017, 5:40pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/6 "2017-05-04T17:40:55Z")

</div>

Using:

> \<elasticsearch.version\>5.3.2\</elasticsearch.version\>

> ```
> <dependency>
> <groupId>org.elasticsearch</groupId>
> <artifactId>elasticsearch</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.plugin</groupId>
> <artifactId>transport-netty3-client</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.plugin</groupId>
> <artifactId>transport-netty4-client</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.plugin</groupId>
> <artifactId>reindex-client</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.plugin</groupId>
> <artifactId>lang-mustache-client</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.plugin</groupId>
> <artifactId>percolator-client</artifactId>
> <version>${elasticsearch.version}</version>
> </dependency>
> <dependency>
> <groupId>org.elasticsearch.client</groupId>
> <artifactId>transport</artifactId>
> <version>${elasticsearch.version}</version>
> <exclusions>
> <exclusion>
> <groupId>org.elasticsearch</groupId>
> <artifactId>elasticsearch</artifactId>
> </exclusion>
> </exclusions>
> </dependency>
> 
> ```

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 4, 2017, 6:55pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/7 "2017-05-04T18:55:31Z")

</div>

It has nothing to do with embedded, it has to do with using a snapshot version.

---

<div class="post-metadata">

### Author: ![billnbell](https://avatars.discourse-cdn.com/v4/letter/b/eb8c5e/32.png) [@billnbell](https://discuss.elastic.co/u/billnbell)
#### Post date: [May 4, 2017, 10:40pm UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/8 "2017-05-04T22:40:39Z")

</div>

OK I got it. Since I shaded it, the code looks at the JAR name, and will default to "isSnapshot = true". It should probably be "isUnsupported = true"

> ```
> } else {
> // not running from the official elasticsearch jar file (unit tests, IDE, uber client jar, shadiness)
> shortHash = "Unknown";
> date = "Unknown";
> isSnapshot = true;
> }
> 
> ```

---

<div class="post-metadata">

### Author: ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)
#### Post date: [May 5, 2017, 2:34am UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/9 "2017-05-05T02:34:49Z")

</div>

That's correct, if we can not verify the jar is official release bits that we shipped, we mark it as a snapshot jar.

---

<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: [June 2, 2017, 2:44am UTC](https://discuss.elastic.co/t/using-embedded-version-of-elastic-gives-this-warning/84299/10 "2017-06-02T02:44:31Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
