You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Craig Rodrigues (JIRA)" <ji...@apache.org> on 2018/05/31 03:50:00 UTC

[jira] [Updated] (AIRFLOW-2545) example_kubernetes_operator.py is causing a DeprecationWarning to be displayed during default install

     [ https://issues.apache.org/jira/browse/AIRFLOW-2545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Craig Rodrigues updated AIRFLOW-2545:
-------------------------------------
    Description: 
|!https://mail.google.com/mail/u/0/images/cleardot.gif|id=:ts!|

 
 {{I tested master branch by putting the following in my requirements.txt:}}

{{git+https://github.com/rodrigc/incubator-airflow@master#egg=apache-airflow[celery,crypto,emr,hive,hdfs,ldap,mysql,postgres,redis,slack,s3]}}

and did a pip install -r requirements.txt
  
 and then saw this DeprecationWarning:
  
 {{[2018-05-29 14:06:27,567] \{example_kubernetes_operator.py:30} WARNING - Could not import KubernetesPodOperator}}
 \{{ /Users/c-craigr/airflow2/lib/python2.7/site-packages/airflow/models.py:2315: PendingDeprecationWarning: Invalid arguments were passed to BaseOperator. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:}}
 \{{ *args: ()}}
 {{ **kwargs: {'name': 'airflow-test-pod', 'image': 'ubuntu:16.04', 'labels':

{'foo': 'bar'}

, 'namespace': 'default', 'cmds': ['bash', '-cx'], 'arguments': ['echo', '10'], 'in_cluster': False, 'get_logs': True}}}
 \{{   category=PendingDeprecationWarning}}

  was:
|
|!https://mail.google.com/mail/u/0/images/cleardot.gif|id=:ts!|
|
 
{{I tested master branch by putting the following in my requirements.txt:}}

{{ git+[https://github.com/rodrigc/incubator-airflow@master#egg=apache-airflow[celery,crypto,emr,hive,hdfs,ldap,mysql,postgres,redis,slack,s3]]}}

{{ and did a pip install -r requirements.txt}}
 
and then saw this DeprecationWarning:
 
{{[2018-05-29 14:06:27,567] \{example_kubernetes_operator.py:30} WARNING - Could not import KubernetesPodOperator}}
{{ /Users/c-craigr/airflow2/lib/python2.7/site-packages/airflow/models.py:2315: PendingDeprecationWarning: Invalid arguments were passed to BaseOperator. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:}}
{{ *args: ()}}
{{ **kwargs: \{'name': 'airflow-test-pod', 'image': 'ubuntu:16.04', 'labels': {'foo': 'bar'}, 'namespace': 'default', 'cmds': ['bash', '-cx'], 'arguments': ['echo', '10'], 'in_cluster': False, 'get_logs': True}}}
{{   category=PendingDeprecationWarning}}


> example_kubernetes_operator.py is causing a DeprecationWarning to be displayed during default install
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AIRFLOW-2545
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2545
>             Project: Apache Airflow
>          Issue Type: Bug
>    Affects Versions: 1.10
>            Reporter: Craig Rodrigues
>            Priority: Minor
>
> |!https://mail.google.com/mail/u/0/images/cleardot.gif|id=:ts!|
>  
>  {{I tested master branch by putting the following in my requirements.txt:}}
> {{git+https://github.com/rodrigc/incubator-airflow@master#egg=apache-airflow[celery,crypto,emr,hive,hdfs,ldap,mysql,postgres,redis,slack,s3]}}
> and did a pip install -r requirements.txt
>   
>  and then saw this DeprecationWarning:
>   
>  {{[2018-05-29 14:06:27,567] \{example_kubernetes_operator.py:30} WARNING - Could not import KubernetesPodOperator}}
>  \{{ /Users/c-craigr/airflow2/lib/python2.7/site-packages/airflow/models.py:2315: PendingDeprecationWarning: Invalid arguments were passed to BaseOperator. Support for passing such arguments will be dropped in Airflow 2.0. Invalid arguments were:}}
>  \{{ *args: ()}}
>  {{ **kwargs: {'name': 'airflow-test-pod', 'image': 'ubuntu:16.04', 'labels':
> {'foo': 'bar'}
> , 'namespace': 'default', 'cmds': ['bash', '-cx'], 'arguments': ['echo', '10'], 'in_cluster': False, 'get_logs': True}}}
>  \{{   category=PendingDeprecationWarning}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)