Hi,
We are currently trying to move from ES 1.7.5 to ES 5.5.0 .
Init elasticSearch class :
final Settings settings = Settings.builder().put("cluster.name", this.elasticsearchManagerDAO.getClusterName()) //$NON-NLS-1$
.put("action.bulk.compress", false) //$NON-NLS-1$
.build();
final TransportClient esClient = new PreBuiltTransportClient(settings);
What's the problem with this configuration ?
The property isn't supported on new version of elasticSearch ?
TRACE :
java.lang.IllegalArgumentException: unknown setting [action.bulk.compress] please check that any required plugins are installed, or check the breaking changes documentation for removed settings
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:293) ~[elasticsearch-5.5.0.jar:5.5.0]
at org.elasticsearch.common.settings.AbstractScopedSettings.validate(AbstractScopedSettings.java:256) ~[elasticsearch-5.5.0.jar:5.5.0]
at org.elasticsearch.common.settings.SettingsModule.(SettingsModule.java:139) ~[elasticsearch-5.5.0.jar:5.5.0]
at org.elasticsearch.client.transport.TransportClient.buildTemplate(TransportClient.java:138) ~[elasticsearch-5.5.0.jar:5.5.0]
at org.elasticsearch.client.transport.TransportClient.(TransportClient.java:265) ~[elasticsearch-5.5.0.jar:5.5.0]
...
Dependencies:
<!-- Elasticsearch -->
<dependency>
<groupId>org.apache.lucene</groupId>
<artifactId>lucene-test-framework</artifactId>
<version>${lucene.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>${elasticsearch.version}</version>
<exclusions>
<exclusion>
<artifactId>asm</artifactId>
<groupId>org.ow2.asm</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.elasticsearch.test</groupId>
<artifactId>framework</artifactId>
<version>${elasticsearch.version}</version>
<scope>test</scope>
</dependency>
Thank you for the answer.