Skip to content

flink 写入Es 报错 #400

Answered by wasys1314
wasys1314 asked this question in Q&A
Discussion options

You must be logged in to vote

Es的版本号不一致导致

        <!-- 排除两个依赖 这两个依赖是6版本的-->
        <dependency>
            <groupId>org.elasticsearch.client</groupId>
            <artifactId>elasticsearch-rest-high-level-client</artifactId>
            <version>7.10.2</version>
            <exclusions>
                <exclusion>
                    <groupId>org.elasticsearch</groupId>
                    <artifactId>elasticsearch</artifactId>
                </exclusion>
                <exclusion>
                    <groupId>org.elasticsearch.client</groupId>
                    <artifactId>elasticsearch-rest-client</artifactId>
                </exclusion>
            </exclusions>
        </dependency>


<!-- 上面排除的两个依赖 重新指定7.1…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wuchong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant