airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zahid Saleem (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AIRFLOW-1215) Adding Airflow Connections via command line for schemes with underscore fail to be added successfully
Date Wed, 17 May 2017 11:02:04 GMT
Zahid Saleem created AIRFLOW-1215:
-------------------------------------

             Summary: Adding Airflow Connections via command line for schemes with underscore
fail to be added successfully
                 Key: AIRFLOW-1215
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1215
             Project: Apache Airflow
          Issue Type: Bug
          Components: cli, configuration, db
    Affects Versions: Airflow 1.8
            Reporter: Zahid Saleem
            Priority: Minor


Automating the airflow install with command line to add conenctions fails to add the connection
successfully if the uri contains underscores in the scheme.

running the command 
airflow connections -a --conn_id MY_HIVE_CONN --conn_uri hive_metastore://username@hiveserver:9083/default

Reports success in the command line but the UI->Admin->Configuration shows the parameters
as incorrect when editing the connection.

Further analysis shows that the urlparse (urllibs Python 2.7) method used to determine the
connection parameters is unable to resolve scheme that includes underscores.







--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message