airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-1030) HttpHook error when creating HttpSensor
Date Tue, 04 Apr 2017 06:40:41 GMT

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

ASF subversion and git services commented on AIRFLOW-1030:
----------------------------------------------------------

Commit 4db53f39a972cae691dc49687a407dda0ff49aaf in incubator-airflow's branch refs/heads/v1-8-test
from pdambrauskas
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=4db53f3 ]

[AIRFLOW-1030][AIRFLOW-1] Fix hook import for HttpSensor

Closes #2180 from
pdambrauskas/fix/http_hook_import

(cherry picked from commit f2dae7d15623e2534e7c0dab3b5a7e02d4cff81d)
Signed-off-by: Bolke de Bruin <bolke@xs4all.nl>


> HttpHook error when creating HttpSensor
> ---------------------------------------
>
>                 Key: AIRFLOW-1030
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1030
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: Airflow 1.8
>         Environment: python3
>            Reporter: Paulius Dambrauskas
>            Assignee: Paulius Dambrauskas
>
> Task:
> {code}
> sensor = HttpSensor(
>     task_id='http_sensor_check',
>     http_conn_id='http_default',
>     endpoint='',
>     params={},
>     poke_interval=5,
>     dag=dag
> )
> {code}
> Exception
> {code}
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/models.py",
line 268, in process_file
>     m = imp.load_source(mod_name, filepath)
>   File "/usr/lib/python3.5/imp.py", line 172, in load_source
>     module = _load(spec)
>   File "<frozen importlib._bootstrap>", line 693, in _load
>   File "<frozen importlib._bootstrap>", line 673, in _load_unlocked
>   File "<frozen importlib._bootstrap_external>", line 665, in exec_module
>   File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
>   File "/home/paulius/airflow/dags/cpg_4.py", line 43, in <module>
>     dag=dag)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/utils/decorators.py",
line 86, in wrapper
>     result = func(*args, **kwargs)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/operators/sensors.py",
line 663, in __init__
>     self.hook = hooks.http_hook.HttpHook(method='GET', http_conn_id=http_conn_id)
>   File "/usr/local/lib/python3.5/dist-packages/airflow-1.9.0.dev0+apache.incubating-py3.5.egg/airflow/utils/helpers.py",
line 436, in __getattr__
>     raise AttributeError
> AttributeError
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message