This is an automated email from the ASF dual-hosted git repository.
snagel pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/master by this push:
new 367988dfd NUTCH-3008 indexer-elastic: downgrade to ES 7.10.2 to
address licensing issues
367988dfd is described below
commit 367988dfd63751e05e10c93c4c32bd9f7c47b634
Author: Sebastian Nagel <[email protected]>
AuthorDate: Wed Mar 13 15:55:55 2024 +0100
NUTCH-3008 indexer-elastic: downgrade to ES 7.10.2 to address licensing
issues
---
src/plugin/indexer-elastic/howto_upgrade_es.md | 4 +--
src/plugin/indexer-elastic/ivy.xml | 2 +-
src/plugin/indexer-elastic/plugin.xml | 37 +++++++++++-----------
.../indexwriter/elastic/ElasticIndexWriter.java | 2 +-
4 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/src/plugin/indexer-elastic/howto_upgrade_es.md
b/src/plugin/indexer-elastic/howto_upgrade_es.md
index b57e0c02f..ca58639d1 100644
--- a/src/plugin/indexer-elastic/howto_upgrade_es.md
+++ b/src/plugin/indexer-elastic/howto_upgrade_es.md
@@ -37,7 +37,7 @@
(eventually with different versions)
- duplicated libs can be added to the exclusions of transitive dependencies
in
build/plugins/indexer-elastic/ivy.xml
- - but it should be made sure that the library versions in ivy/ivy.xml
correspend to
+ - but it should be made sure that the library versions in ivy/ivy.xml
correspond to
those required by Tika
5. Remove the locally "installed" dependencies in
src/plugin/indexer-elastic/lib/:
@@ -47,4 +47,4 @@
6. Build Nutch and run all unit tests:
$ cd ../../../
- $ ant clean runtime test
\ No newline at end of file
+ $ ant clean runtime test
diff --git a/src/plugin/indexer-elastic/ivy.xml
b/src/plugin/indexer-elastic/ivy.xml
index de59711a2..2a52fc62b 100644
--- a/src/plugin/indexer-elastic/ivy.xml
+++ b/src/plugin/indexer-elastic/ivy.xml
@@ -36,7 +36,7 @@
</publications>
<dependencies>
- <dependency org="org.elasticsearch.client"
name="elasticsearch-rest-high-level-client" rev="7.13.2">
+ <dependency org="org.elasticsearch.client"
name="elasticsearch-rest-high-level-client" rev="7.10.2">
<!-- exclusions of dependencies provided in Nutch core (ivy/ivy.xml) -->
<exclude org="commons-codec" name="commons-codec" />
<exclude org="commons-logging" name="commons-logging" />
diff --git a/src/plugin/indexer-elastic/plugin.xml
b/src/plugin/indexer-elastic/plugin.xml
index fc3723a60..b4f872375 100644
--- a/src/plugin/indexer-elastic/plugin.xml
+++ b/src/plugin/indexer-elastic/plugin.xml
@@ -22,18 +22,17 @@
</library>
<!-- Elastic Rest Client Dependencies -->
<!-- end of Elastic Rest Client dependencies -->
- <library name="HdrHistogram-2.1.9.jar"/>
- <library name="aggs-matrix-stats-client-7.13.2.jar"/>
+ <library name="aggs-matrix-stats-client-7.10.2.jar"/>
<library name="compiler-0.9.6.jar"/>
- <library name="elasticsearch-7.13.2.jar"/>
- <library name="elasticsearch-cli-7.13.2.jar"/>
- <library name="elasticsearch-core-7.13.2.jar"/>
- <library name="elasticsearch-geo-7.13.2.jar"/>
- <library name="elasticsearch-plugin-classloader-7.13.2.jar"/>
- <library name="elasticsearch-rest-client-7.13.2.jar"/>
- <library name="elasticsearch-rest-high-level-client-7.13.2.jar"/>
- <library name="elasticsearch-secure-sm-7.13.2.jar"/>
- <library name="elasticsearch-x-content-7.13.2.jar"/>
+ <library name="elasticsearch-7.10.2.jar"/>
+ <library name="elasticsearch-cli-7.10.2.jar"/>
+ <library name="elasticsearch-core-7.10.2.jar"/>
+ <library name="elasticsearch-geo-7.10.2.jar"/>
+ <library name="elasticsearch-rest-client-7.10.2.jar"/>
+ <library name="elasticsearch-rest-high-level-client-7.10.2.jar"/>
+ <library name="elasticsearch-secure-sm-7.10.2.jar"/>
+ <library name="elasticsearch-x-content-7.10.2.jar"/>
+ <library name="HdrHistogram-2.1.9.jar"/>
<library name="hppc-0.8.1.jar"/>
<library name="httpasyncclient-4.1.4.jar"/>
<library name="httpclient-4.5.10.jar"/>
@@ -43,10 +42,10 @@
<library name="jackson-dataformat-cbor-2.10.4.jar"/>
<library name="jackson-dataformat-smile-2.10.4.jar"/>
<library name="jackson-dataformat-yaml-2.10.4.jar"/>
- <library name="jna-5.7.0-1.jar"/>
- <library name="joda-time-2.10.10.jar"/>
+ <library name="jna-5.5.0.jar"/>
+ <library name="joda-time-2.10.4.jar"/>
<library name="jopt-simple-5.0.2.jar"/>
- <library name="lang-mustache-client-7.13.2.jar"/>
+ <library name="lang-mustache-client-7.10.2.jar"/>
<library name="lucene-analyzers-common-8.11.2.jar"/>
<library name="lucene-backward-codecs-8.11.2.jar"/>
<library name="lucene-core-8.11.2.jar"/>
@@ -58,12 +57,12 @@
<library name="lucene-queries-8.11.2.jar"/>
<library name="lucene-queryparser-8.11.2.jar"/>
<library name="lucene-sandbox-8.11.2.jar"/>
- <library name="lucene-spatial-extras-8.11.2.jar"/>
<library name="lucene-spatial3d-8.11.2.jar"/>
+ <library name="lucene-spatial-extras-8.11.2.jar"/>
<library name="lucene-suggest-8.11.2.jar"/>
- <library name="mapper-extras-client-7.13.2.jar"/>
- <library name="parent-join-client-7.13.2.jar"/>
- <library name="rank-eval-client-7.13.2.jar"/>
+ <library name="mapper-extras-client-7.10.2.jar"/>
+ <library name="parent-join-client-7.10.2.jar"/>
+ <library name="rank-eval-client-7.10.2.jar"/>
<library name="s2-geometry-library-java-1.0.0.jar"/>
<library name="snakeyaml-1.26.jar"/>
<library name="spatial4j-0.7.jar"/>
@@ -74,4 +73,4 @@
<extension id="org.apache.nutch.indexer.elastic" name="Elasticsearch Index
Writer" point="org.apache.nutch.indexer.IndexWriter">
<implementation id="ElasticIndexWriter"
class="org.apache.nutch.indexwriter.elastic.ElasticIndexWriter" />
</extension>
-</plugin>
\ No newline at end of file
+</plugin>
diff --git
a/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
b/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
index 290d9dfca..0cb267463 100644
---
a/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
+++
b/src/plugin/indexer-elastic/src/java/org/apache/nutch/indexwriter/elastic/ElasticIndexWriter.java
@@ -149,7 +149,7 @@ public class ElasticIndexWriter implements IndexWriter {
.builder(
(request, bulkListener) -> client.bulkAsync(request,
RequestOptions.DEFAULT, bulkListener),
- bulkProcessorListener(), "nutch-indexer-elastic")
+ bulkProcessorListener())
.setBulkActions(maxBulkDocs)
.setBulkSize(new ByteSizeValue(maxBulkLength, ByteSizeUnit.BYTES))
.setConcurrentRequests(1)