You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Fokko Driesprong (Jira)" <ji...@apache.org> on 2019/10/28 19:37:01 UTC
[jira] [Resolved] (AIRFLOW-4930) Druid hook sends json ingestion
spec string using json= parameter of requests, not body=
[ https://issues.apache.org/jira/browse/AIRFLOW-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fokko Driesprong resolved AIRFLOW-4930.
---------------------------------------
Fix Version/s: 1.10.7
2.0.0
Resolution: Fixed
> Druid hook sends json ingestion spec string using json= parameter of requests, not body=
> ----------------------------------------------------------------------------------------
>
> Key: AIRFLOW-4930
> URL: https://issues.apache.org/jira/browse/AIRFLOW-4930
> Project: Apache Airflow
> Issue Type: Bug
> Components: hooks
> Affects Versions: 1.10.3
> Environment: druid 0.15.0
> requests 2.22.0
> Reporter: Hyeungshik Jung
> Assignee: Hyeungshik Jung
> Priority: Trivial
> Labels: easyfix
> Fix For: 2.0.0, 1.10.7
>
>
> Hi all, I recently tried to add druid ingestion task to my airflow DAG,
> and found that druid hook for airflow is sending json string as `json=`, which makes druid coordinator impossible to parse the request body. [https://github.com/apache/airflow/blob/master/airflow/hooks/druid_hook.py#L71]
> I changed it to send `json_index_spec` using `data=`, and my ingestion job worked as expected. I'm not sure whether this is a bug or environment specific issue.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)