Uploaded image for project: 'Apache Airflow'
  1. Apache Airflow
  2. AIRFLOW-5138

Spurious DeprecationWarnings issued for configuration

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.10.3, 1.10.4
    • Fix Version/s: None
    • Component/s: configuration
    • Labels:
      None

      Description

      If you have tests that import airflow, and run them with pytest, you'll see errors like this:

      /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')
      
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                mumak Jonathan Lange
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: