From 297d36473e2046a5df699772217bec8899a14a0c Mon Sep 17 00:00:00 2001 From: FerArribas Date: Thu, 26 Sep 2024 18:04:53 +0200 Subject: [PATCH] RANGER-4939: Upgrade Elasticsearch version to 7.17.24 --- .../ranger/server/tomcat/ElasticSearchIndexBootStrapper.java | 4 ++-- pom.xml | 2 +- .../elasticsearch/plugin/RangerElasticsearchPlugin.java | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 pom.xml diff --git a/embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/ElasticSearchIndexBootStrapper.java b/embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/ElasticSearchIndexBootStrapper.java index 15a16e41fc..579b1e7375 100644 --- a/embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/ElasticSearchIndexBootStrapper.java +++ b/embeddedwebserver/src/main/java/org/apache/ranger/server/tomcat/ElasticSearchIndexBootStrapper.java @@ -50,8 +50,8 @@ import org.elasticsearch.client.indices.CreateIndexRequest; import org.elasticsearch.client.indices.CreateIndexResponse; import org.elasticsearch.common.settings.Settings; -import org.elasticsearch.common.unit.TimeValue; -import org.elasticsearch.common.xcontent.XContentType; +import org.elasticsearch.core.TimeValue; +import org.elasticsearch.xcontent.XContentType; public class ElasticSearchIndexBootStrapper extends Thread { diff --git a/pom.xml b/pom.xml old mode 100644 new mode 100755 index 7c2390fa8a..d6354c14b6 --- a/pom.xml +++ b/pom.xml @@ -113,7 +113,7 @@ 10.14.2.0 2.1.7 2.7.12 - 7.10.2 + 7.17.24 2.13.2 4.7.3.5 1.2 diff --git a/ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/plugin/RangerElasticsearchPlugin.java b/ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/plugin/RangerElasticsearchPlugin.java index 2af13f87fa..2e261225eb 100644 --- a/ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/plugin/RangerElasticsearchPlugin.java +++ b/ranger-elasticsearch-plugin-shim/src/main/java/org/apache/ranger/authorization/elasticsearch/plugin/RangerElasticsearchPlugin.java @@ -37,7 +37,7 @@ import org.elasticsearch.common.io.stream.NamedWriteableRegistry; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.util.concurrent.ThreadContext; -import org.elasticsearch.common.xcontent.NamedXContentRegistry; +import org.elasticsearch.xcontent.NamedXContentRegistry; import org.elasticsearch.env.Environment; import org.elasticsearch.env.NodeEnvironment; import org.elasticsearch.plugins.ActionPlugin;