Closed sj-ganwh closed 8 months ago
Tested, elasticsearch-hadoop-7.1.1.jar
is compatible with Elasticsearch 5.5.3
.
CVE-2023-46674
further reading: https://discuss.elastic.co/t/elasticsearch-hadoop-7-17-11-8-9-0-security-update-esa-2023-28/348663
I changed major.before(EsMajorVersion.V_6_X
to major.before(EsMajorVersion.V_5_X
in
https://github.com/sj-ganwh/elasticsearch-hadoop/commit/52d5505d627b714dd369164382d17eb564b30e63 and rebuild from it and it worked... These are the artifacts: https://github.com/sj-ganwh/elasticsearch-hadoop/actions/runs/8014107473
In my case, I just using Hive external table just to read from ES 5.5.3, this kind of 'force fix' has any side effects?
In 7.14 we added a validation check to the library to ensure that ES-Hadoop was contacting an Elasticsearch distribution and not something else during it's setup process. https://github.com/elastic/elasticsearch-hadoop/pull/1696 The header is only present in more recent versions of Elasticsearch. The connector technically could still work for older versions of Elasticsearch but without the header present it will reject connecting further beyond the initial handshake. The header should be present in Elasticsearch before upgrading ES-Hadoop to 7.14.
What kind an issue is this?
The easier it is to track down the bug, the faster it is solved.
Often a solution already exists! Don’t send pull requests to implement new features without first getting our support. Sometimes we leave features out on purpose to keep the project small.
Issue description
Due to
CVE-2023-46674
, we need to update version to Elasticsearch-hadoop >= 7.17.11 or >= 8.9.0. So we plan to update to7.17.11
. According to https://github.com/elastic/elasticsearch-hadoop quoteES-Hadoop 6.x and higher are compatible with Elasticsearch 1.X, 2.X, 5.X, and 6.X
, soES-Hadoop 7.x and higher are compatible with Elasticsearch 1.X, 2.X, 5.X, 6.X and 7.X
. But when we replaceelasticsearch-hadoop-5.5.3.jar
toelasticsearch-hadoop-7.17.11.jar
, it fails.Steps to reproduce
Code:
Strack trace:
Version Info
OS: : CentOS 7 JVM : jdk8 Hadoop/Spark: hadoop 2.7 Hive: 2.1.1 ES-Hadoop : 7.17.11 ES : 5.5.3