When setting up AAI with Apache Airflow, the AAI aai-airflow-connector.log shows Non-OK response (401) from AAI server server with message
search cancel

When setting up AAI with Apache Airflow, the AAI aai-airflow-connector.log shows Non-OK response (401) from AAI server server with message

book

Article ID: 377243

calendar_today

Updated On:

Products

Automation Analytics & Intelligence

Issue/Introduction

When setting up the AAI-airflow-connector to integrate with Apache Airflow, the following message is seen in the aai-airflow-connector.log:

WARN  [WebClientApiCaller] <AirflowSchedulerName>: Non-OK response (401) from AAI server server with message: {"message":"Incorrect username, password or domain","stackTrace":"","exceptionClass":"","exceptionMessage":""}

Environment

AAI

Apache Airflow

Cause

Unsupported authentication type used in Apache Airflow configuration.

Resolution

AAI Airflow supports either Basic Authentication or OAuth2 authentication as shown in the AAI web UI when adding or configuring the scheduler.

Please refer to the Apache Airflow documentation for how to configure the airflow.cfg file to use basic authentication.

https://airflow.apache.org/docs/apache-airflow/2.5.0/security/api.html

Once the configuration is correct on the Apache Airflow side, you can restart the AAI-airflow-connector service by running:

systemctl restart AAI-airflow-connector

 

Then check the <Install Dir>/logs/aai-airflow-connector.log to verify that communication is successful.

Additional Information

For more information about configuring the Airflow Connector please refer the the AAI Documentation.