Jonathan Lange created AIRFLOW-5138:
---------------------------------------
Summary: Spurious DeprecationWarnings issued for configuration
Key: AIRFLOW-5138
URL: https://issues.apache.org/jira/browse/AIRFLOW-5138
Project: Apache Airflow
Issue Type: Bug
Components: configuration
Affects Versions: 1.10.4, 1.10.3
Reporter: Jonathan Lange
If you have tests that import airflow, and run them with pytest, you'll see
errors like this:
{code}
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/configuration.py:599
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/configuration.py:599:
DeprecationWarning: Specifying airflow_home in the config file is deprecated.
As you have left it at the default value you should remove the setting from
your airflow.cfg and suffer no change in behaviour.
category=DeprecationWarning,
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:65
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:65:
DeprecationWarning: The elasticsearch_host option in [elasticsearch] has been
renamed to host - the old setting has been used, but please update your config.
ELASTICSEARCH_HOST = conf.get('elasticsearch', 'HOST')
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:67
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:67:
DeprecationWarning: The elasticsearch_log_id_template option in
[elasticsearch] has been renamed to log_id_template - the old setting has been
used, but please update your config.
ELASTICSEARCH_LOG_ID_TEMPLATE = conf.get('elasticsearch', 'LOG_ID_TEMPLATE')
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:69
/Users/jml/.pyenv/versions/3.7.4/envs/memflow/lib/python3.7/site-packages/airflow/config_templates/airflow_local_settings.py:69:
DeprecationWarning: The elasticsearch_end_of_log_mark option in
[elasticsearch] has been renamed to end_of_log_mark - the old setting has been
used, but please update your config.
ELASTICSEARCH_END_OF_LOG_MARK = conf.get('elasticsearch', 'END_OF_LOG_MARK')
{code}
These errors occur even if you don't have a config file present. They are very
distracting, and I can't figure out what action I should take to get rid of
them.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)