问题描述:
es启动时报错Unsupported transport.type [netty4]
原因分析:
这里主要是因为引入的es pom文件版本不一致导致的:
es 的文件:
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>6.6.0</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>6.6.0</version>
</dependency>
解决方案:
添加netty-client的依赖
⚠️注意: 这里的版本要和上面的es的版本一致,不一致的话后面可能还会有问题。
<dependency>
<groupId>org.elasticsearch.plugin</groupId>
<artifactId>transport-netty4-client</artifactId>
<version>6.6.0</version>
</dependency>