Skip to content

Commit 8e55b49

Browse files
awelsh93ashb
authored andcommitted
[AIRFLOW-3195] Log query and task_id in druid-hook (apache#4018)
Log query and task_id in druid-hook
1 parent 916e98a commit 8e55b49

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

airflow/hooks/druid_hook.py

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def get_conn_url(self):
6868
def submit_indexing_job(self, json_index_spec):
6969
url = self.get_conn_url()
7070

71+
self.log.info("Druid ingestion spec: {}".format(json_index_spec))
7172
req_index = requests.post(url, json=json_index_spec, headers=self.header)
7273
if (req_index.status_code != 200):
7374
raise AirflowException('Did not get 200 when '
@@ -76,6 +77,7 @@ def submit_indexing_job(self, json_index_spec):
7677
req_json = req_index.json()
7778
# Wait until the job is completed
7879
druid_task_id = req_json['task']
80+
self.log.info("Druid indexing task-id: {}".format(druid_task_id))
7981

8082
running = True
8183

0 commit comments

Comments
 (0)