Thank you for your answer.

we will have to install a module for each operator ..?

De : Ash Berlin-Taylor [mailto:[email protected]]
Envoyé : jeudi 18 juin 2020 12:28
À : [email protected]
Cc : BADET, Olivier <[email protected]>; DEQUIDT, Geoffrey 
<[email protected]>; ARIF, Ibrar <[email protected]>
Objet : Re: Changes import paths DAG 1.10.10

Hi Kevin,

The changes talked about in that AIP have not yet been included in a published 
release.

Soon (as in this early next week we hope) there will be a 
apache-airflow-backport-providers-ssh module that you can install via Pip to 
get this new path working in 1.10.10.


On Jun 18 2020, at 11:25 am, JOAQUIM, Kevin 
<[email protected]<mailto:[email protected]>> wrote:

Hi all,



Sorry my English isn’t perfect. I have been using Airflow (v1.10.10) and i have 
one question.

•         Changes in import paths : In the documentation --> 
https://cwiki.apache.org/confluence/display/AIRFLOW/Backported+providers+packages+for+Airflow+1.10.*+series<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcwiki.apache.org%2Fconfluence%2Fdisplay%2FAIRFLOW%2FBackported%2Bproviders%2Bpackages%2Bfor%2BAirflow%2B1.10.*%2Bseries&data=02%7C01%7Ckevin.joaquim%40sfr.com%7Cd6376fba970944939d0408d813729586%7Cd92fdf0ea2b64bf4a8100f4961cdb50f%7C1%7C0%7C637280730139108213&sdata=hDDSJ01frrDeQ1BA0DnZcohCoIw1jcQOepNHnh2JLKY%3D&reserved=0>
 it is said that the changes are usable in Airflow 1.10.*

But When i used the new import path : « from 
airflow.providers.ssh.operators.ssh import SSHOperator »  i have an import 
error..  i have to used the old path : «airflow.contrib.operators.ssh_operator 
». Why this change isn’t usable.. ?

After some research in the Github --> 
https://github.com/apache/airflow<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairflow&data=02%7C01%7Ckevin.joaquim%40sfr.com%7Cd6376fba970944939d0408d813729586%7Cd92fdf0ea2b64bf4a8100f4961cdb50f%7C1%7C0%7C637280730139118202&sdata=SCN8ff%2BlCn%2BgcLLKq6st0a4lGcitQ4UPusxguggu6Zk%3D&reserved=0>,
 we have master branch where the change it’s done avec one redirect --> 
https://github.com/apache/airflow/blob/master/airflow/contrib/operators/ssh_operator.py<https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fapache%2Fairflow%2Fblob%2Fmaster%2Fairflow%2Fcontrib%2Foperators%2Fssh_operator.py&data=02%7C01%7Ckevin.joaquim%40sfr.com%7Cd6376fba970944939d0408d813729586%7Cd92fdf0ea2b64bf4a8100f4961cdb50f%7C1%7C0%7C637280730139118202&sdata=hsb84HgLT6Mug6Ys5y%2Bd0GQgHYqxcE%2Bt9NoY%2B%2FEtiYY%3D&reserved=0>
But in the branch tag « 1.10.10 » there is no redirect..

I would like to change the path import gradually for the next upgrade. Who can 
help me?



Thanks ☺

Regards

Reply via email to