Using Embedded version of elastic gives this warning?

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?

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

What is the Maven pom look like?

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

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?

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>

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

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;
    }

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

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