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

ASF GitHub Bot commented on AIRFLOW-3195:
-----------------------------------------

Fokko closed pull request #4018: [AIRFLOW-3195] Log query and task_id in 
druid-hook
URL: https://github.com/apache/incubator-airflow/pull/4018
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/airflow/hooks/druid_hook.py b/airflow/hooks/druid_hook.py
index 75111fad2e..a45ebf472f 100644
--- a/airflow/hooks/druid_hook.py
+++ b/airflow/hooks/druid_hook.py
@@ -68,6 +68,7 @@ def get_conn_url(self):
     def submit_indexing_job(self, json_index_spec):
         url = self.get_conn_url()
 
+        self.log.info("Druid ingestion spec: {}".format(json_index_spec))
         req_index = requests.post(url, json=json_index_spec, 
headers=self.header)
         if req_index.status_code != 200:
             raise AirflowException('Did not get 200 when '
@@ -76,6 +77,7 @@ def submit_indexing_job(self, json_index_spec):
         req_json = req_index.json()
         # Wait until the job is completed
         druid_task_id = req_json['task']
+        self.log.info("Druid indexing task-id: {}".format(druid_task_id))
 
         running = True
 


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Druid Hook: Log ingestion spec and task id
> ------------------------------------------
>
>                 Key: AIRFLOW-3195
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3195
>             Project: Apache Airflow
>          Issue Type: Improvement
>            Reporter: Adam Welsh
>            Assignee: Adam Welsh
>            Priority: Trivial
>             Fix For: 1.10.1
>
>
> It would be helpful to log the ingestion spec and resulting task_id when 
> using the Druid hook.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to