-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch.__init__() got an unexpected keyword argument 'use_ssl' #34099
Comments
I'll look at it when I return from vacation next week |
I guess the issue that @cesar-vermeulen I guess it is not problem in core, if you switch to 4.5.1 of provider, I guess it would fix your logging |
I am quite positive that this should be fixed in 2.7.1 via #33135 There was a bit of problem with 2.7.0 that elasticsearch configuration has been still provided by Apache Airflow (we have not removed the configuration from Airflow and then we added the new configuration was added to elasticsearch provider. That was the only "provider" configuration left in 2.7.0 and it's been removed in 2.7.1. We are currently testing 2.7.1 rc2 - see #34065 Can you please check @cesar-vermeulen if this problem is reproducible in 2.7.1rc2 ? Closing for now - we can always reopen if not fixed. |
@potiuk I this it also need to be fixed on provider level, otherwise it would be broken in Airflow 2.4-2.7.0 |
Correct. We need to fix it in the provider. We will likely need to yank the current provider |
Let me try to fix it, seem like it is "20 minutes adventure" |
I have a better fix :) |
Airflow 3 🤔 |
The elasticsearch handler got all configuraiton parameters from the "elasticsearch_config" section but it means that in airflow versions pre 2.7 it could get old config keys which renders the new provider unusable. This PR filters out configuration parameter to only pass valid parameters for the new handler. Fixes: apache#34099
…34119) The elasticsearch handler got all configuraiton parameters from the "elasticsearch_config" section but it means that in airflow versions pre 2.7 it could get old config keys which renders the new provider unusable. This PR filters out configuration parameter to only pass valid parameters for the new handler. Fixes: #34099
Apache Airflow version
2.7.0
What happened
When upgrading apache-airflow-providers-elasticsearch to the newest provider (5.0.1), Airflow is unable to spin up. The scheudler and airflow-migrations both crash on following error:
What you think should happen instead
Deploy Airflow without any crashing schedulers
How to reproduce
I'm currently running airflow on version 2.7.0 on AKS. I'm trying to upgrade elasticsearch to package 5.0.1.
Following config is present for elasticsearch:
Operating System
Debian GNU/Linux 11 (bullseye)
Versions of Apache Airflow Providers
apache-airflow-providers-cncf-kubernetes==7.4.2
apache-airflow-providers-docker==3.7.4
apache-airflow-providers-microsoft-azure==4.3.0
apache-airflow-providers-elasticsearch==5.0.1
Deployment
Official Apache Airflow Helm Chart
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: