[
https://issues.apache.org/jira/browse/AIRFLOW-2790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16639375#comment-16639375
]
Iuliia Volkova commented on AIRFLOW-2790:
-----------------------------------------
PR what fixed this issue was already merged in master. Could we close the task?
[~ashb], [~yohei]
> snakebite syntax error: baseTime = min(time * (1L << retries), cap);
> --------------------------------------------------------------------
>
> Key: AIRFLOW-2790
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2790
> Project: Apache Airflow
> Issue Type: Bug
> Components: hooks
> Affects Versions: 1.9.0
> Environment: Amazon Linux
> Reporter: Yohei Onishi
> Priority: Major
>
> Does anybody know how can I fix this issue?
> * Got the following error when importing
> airflow.operators.sensors.ExternalTaskSensor.
> * apache-airflow 1.9.0 depends on snakebite 2.11.0 and it does not work with
> Python3. https://github.com/spotify/snakebite/issues/250
> [2018-07-23 06:42:51,828] \{models.py:288} ERROR - Failed to import:
> /home/airflow/airflow/dags/example_task_sensor2.py
> Traceback (most recent call last):
> File "/usr/local/lib/python3.6/site-packages/airflow/models.py", line 285,
> in process_file
> m = imp.load_source(mod_name, filepath)
> File "/usr/lib64/python3.6/imp.py", line 172, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 675, in _load
> File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 678, in exec_module
> File "<frozen importlib._bootstrap>", line 205, in _call_with_frames_removed
> File "/home/airflow/airflow/dags/example_task_sensor2.py", line 10, in
> <module>
> from airflow.operators.sensors import ExternalTaskSensor
> File "/usr/local/lib/python3.6/site-packages/airflow/operators/sensors.py",
> line 34, in <module>
> from airflow.hooks.hdfs_hook import HDFSHook
> File "/usr/local/lib/python3.6/site-packages/airflow/hooks/hdfs_hook.py",
> line 20, in <module>
> from snakebite.client import Client, HAClient, Namenode, AutoConfigClient
> File "/usr/local/lib/python3.6/site-packages/snakebite/client.py", line 1473
> baseTime = min(time * (1L << retries), cap);
> ^
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)