[
https://issues.apache.org/jira/browse/AIRFLOW-4930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882953#comment-16882953
]
Hyeungshik Jung edited comment on AIRFLOW-4930 at 7/11/19 1:29 PM:
-------------------------------------------------------------------
[~jackjack10] Sure! I will send a PR fixing this issue. Should I include add a
test case ? or do you think it's just a trivial fix?
was (Author: zxzl):
Sure! I will send a PR fixing this issue. Should I include add a test case ? or
do you think it's just trivial fix?
> 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
> Priority: Trivial
> Labels: easyfix
>
> 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 `body=`, 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
(v7.6.14#76016)