Skip to content

Druid Operator is not getting host #27029

@emincanoguz11

Description

@emincanoguz11

Apache Airflow version

Other Airflow 2 version (please specify below)

What happened

We use Airflow 2.3.3. I see that this test is successful, but I take a this error. This is the picture

File "/home/airflow/.local/lib/python3.7/site-packages/requests/sessions.py", line 792, in get_adapter
    raise InvalidSchema(f"No connection adapters were found for {url!r}")

Screen Shot 2022-10-12 at 15 34 40

Screen Shot 2022-10-12 at 15 37 27

I take dag like this
Screen Shot 2022-10-13 at 12 36 25
Screen Shot 2022-10-13 at 12 37 15

Also I tried this type but I failed

ingestion_2 = SimpleHttpOperator(
    task_id='test_task',
    method='POST',
    http_conn_id=DRUID_CONN_ID,
    endpoint='/druid/indexer/v1/task',
    data=json.dumps(read_file),
    dag=dag,
    do_xcom_push=True,
    headers={
        'Content-Type': 'application/json'
    },
    response_check=lambda response: response.json()['Status'] == 200)

I get this log

[2022-10-13, 06:16:46 UTC] {http.py:143} ERROR - {"error":"Missing type id when trying to resolve subtype of [simple type, class org.apache.druid.indexing.common.task.Task]: missing type id property 'type'\n at [Source: (org.eclipse.jetty.server.HttpInputOverHTTP); line: 1, column: 1]"}

I don't know this is bug or issue or networking problem but can we check this?

P.S - We use Airflow on Kubernetes so that we can not debug it.

What you think should happen instead

No response

How to reproduce

No response

Operating System

Kubernetes

Versions of Apache Airflow Providers

No response

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions