You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Jonathan Lange (JIRA)" <ji...@apache.org> on 2019/08/08 05:44:00 UTC

[jira] [Commented] (AIRFLOW-5138) Spurious DeprecationWarnings issued for configuration

    [ https://issues.apache.org/jira/browse/AIRFLOW-5138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16902697#comment-16902697 ] 

Jonathan Lange commented on AIRFLOW-5138:
-----------------------------------------

The warnings are likely due to https://github.com/apache/airflow/blob/0be39219cd058ba7d50cdf34b2cc46513f4f5ab3/airflow/configuration.py#L39-L43

It's very strange to have a library override user-provided warning settings.

> 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.3, 1.10.4
>            Reporter: Jonathan Lange
>            Priority: Minor
>
> 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)