Using Embedded version of elastic gives this warning?


(Bill) #1

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?


(Mark Walkom) #2

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


(Bill) #3

What is the Maven pom look like?


(Jason Tedor) #4

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


(Bill) #5

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?


(Bill) #6

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>

(Jason Tedor) #7

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


(Bill) #8

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

(Jason Tedor) #9

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


(system) #10

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