apache-airflow-providers-elasticsearch
Changelog¶
5.3.0¶
Note
This release of provider is only available for Airflow 2.6+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers to Airflow 2.6.0 (#36017)
Cleanup code for elasticsearch<8 (#35707)
5.2.0¶
Features¶
Add task context logging feature to allow forwarding messages to task logs (#32646)
Extend task context logging support for remote logging using Elasticsearch (#32977)
Bug Fixes¶
Update es read query to not use body (#34792)
Check attr on parent not self re TaskContextLogger set_context (#35780)
Misc¶
Remove backcompat inheritance for DbApiHook (#35754)
5.1.0¶
Note
This release of provider is only available for Airflow 2.5+ as explained in the Apache Airflow providers support policy.
Note
In PR #34790 we removed the unused argument metadata
from method es_read
. We determined that es_read
is an internal method and therefore not subject to backcompat, so we did not bump major version for this provider.
In order to make clearer that this is an internal method we renamed it with an underscore prefix _es_read
.
Misc¶
Bump min airflow version of providers (#34728)
Remove unused argument metadata from es_read and make clearly private (#34790)
Improve intelligibility of end_of_log determination (#34788)
Replace try/except/pass by contextlib.suppress in ElasticSearch provider (#34251)
5.0.2¶
Bug Fixes¶
Make sure that only valid elasticsearch keys are passed to handler (#34119)
Misc¶
Replace sequence concatenation by unpacking in Airflow providers (#33933)
Improve modules import in Airflow providers by some of them into a type-checking block (#33754)
Use literal dict instead of calling dict() in providers (#33761)
remove unnecessary and rewrite it using list in providers (#33763)
Use f-string instead of in Airflow providers (#33752)
5.0.1¶
Note
This release added support for elasticsearch 8
Bug Fixes¶
Add backward compatibility for elasticsearch<8 (#33281)
Fix urlparse schemaless-behaviour on Python 3.9+ (#33289)
Misc¶
Upgrade Elasticsearch to 8 (#33135)
5.0.0¶
Note
Upgrade to Elasticsearch 8. The ElasticsearchTaskHandler & ElasticsearchSQLHook will now use Elasticsearch 8 package. As explained https://elasticsearch-py.readthedocs.io/en/stable , Elasticsearch language clients are only backwards compatible with default distributions and without guarantees made, we recommend upgrading the version of Elasticsearch database to 8 to ensure compatibility with the language client.
Breaking changes¶
Note
Deprecate non-official elasticsearch libraries. Only the official elasticsearch library was used
Deprecate the 2 non-official elasticsearch libraries (#31920)
Bug Fixes¶
Fix unsound type hint in ElasticsearchTaskHandler.es_read (#32509)
Misc¶
Fix Failing ES Remote Logging (#32438)
4.5.0¶
Note
This release of provider is only available for Airflow 2.4+ as explained in the Apache Airflow providers support policy.
Misc¶
Bump minimum Airflow version in providers (#30917)
Upper-bind elasticearch integration (#31255)
4.3.0¶
Note
This release of provider is only available for Airflow 2.3+ as explained in the Apache Airflow providers support policy.
Misc¶
Move min airflow version to 2.3.0 for all providers (#27196)
4.1.0¶
Features¶
Adding ElasticserachPythonHook - ES Hook With The Python Client (#24895)
Move all SQL classes to common-sql provider (#24836)
Bug Fixes¶
Move fallible ti.task.dag assignment back inside try/except block (#24533) (#24592)
4.0.0¶
Breaking changes¶
Note
This release of provider is only available for Airflow 2.2+ as explained in the Apache Airflow providers support policy.
Misc¶
Apply per-run log templates to log handlers (#24153)
3.0.2¶
Bug Fixes¶
Fix mistakenly added install_requires for all providers (#22382)
Fix "run_id" k8s and elasticsearch compatibility with Airflow 2.1 (#22385)
3.0.0¶
Breaking changes¶
Change default log filename template to include map_index (#21495)
Misc¶
Support for Python 3.10
2.2.0¶
Features¶
Emit "logs not found" message when ES logs appear to be missing (#21261)
Use compat data interval shim in log handlers (#21289)
Misc¶
Clarify ElasticsearchTaskHandler docstring (#21255)
2.0.3¶
Bug Fixes¶
Fix Invalid log order in ElasticsearchTaskHandler (#17551)
Misc¶
Optimise connection importing for Airflow 2.2.0
Adds secrets backend/logging/auth information to provider yaml (#17625)
2.0.1¶
Breaking changes¶
Auto-apply apply_default decorator (#15667)
Remove support Jinja templated log_id in Elasticsearch (#16465)
While undocumented, previously
[elasticsearch] log_id
supported a Jinja templated string. Support for Jinja templates has now been removed.log_id
should be a template string instead, for example:{dag_id}-{task_id}-{execution_date}-{try_number}
.If you used a Jinja template previously, the
execution_date
on your Elasticsearch documents will need to be updated to the new format.
Warning
Due to apply_default decorator removal, this version of the provider requires Airflow 2.1.0+.
If your Airflow version is < 2.1.0, and you want to install this provider version, first upgrade
Airflow to at least version 2.1.0. Otherwise your Airflow package version will be upgraded
automatically and you will have to manually run airflow upgrade db
to complete the migration.
Features¶
Support remote logging in elasticsearch with filebeat 7 (#14625)
Support non-https elasticsearch external links (#16489)
Bug fixes¶
Fix external elasticsearch logs link (#16357)
Fix Elasticsearch external log link with ''json_format'' (#16467)
1.0.4¶
Bug fixes¶
Fix 'logging.exception' redundancy (#14823)
Fix exception caused by missing keys in the ElasticSearch Record (#15163)
1.0.1¶
Updated documentation and readme files.
Bug fixes¶
Respect LogFormat when using ES logging with Json Format (#13310)
1.0.0¶
Initial version of the provider.