You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Daniel Lamblin (JIRA)" <ji...@apache.org> on 2018/08/09 09:07:00 UTC

[jira] [Commented] (AIRFLOW-1530) Adding a connection to Airflow via command line for hive_cli fails

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

Daniel Lamblin commented on AIRFLOW-1530:
-----------------------------------------

This is similarly true of `google_cloud_platform`, `hive_metastore`, `mesos_framework-id`, and `azure_data_lake`. Would the correct fix be to as policy, disallow underscores, change all underscores to dashes in the code here, [https://github.com/apache/incubator-airflow/blob/6f7fe74b9ff6c2abae2764988c152af8bcc8e199/airflow/models.py#L638,] and implement something on the model loading side that changes them too (so old DBs will work?) Or would it be better to replace all the URI parsing (which finds the schema hostname username password etc.).

> Adding a connection to Airflow via command line for hive_cli fails
> ------------------------------------------------------------------
>
>                 Key: AIRFLOW-1530
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1530
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: models
>    Affects Versions: 1.8.2
>            Reporter: David Howell
>            Priority: Minor
>
> The urlparse method from urllib cannot extract the conn_type from a url passed via the airflow cli when that conn_type contains an underscore.
> Specifically, adding a connection via the cli for the `hive_cli` type always fails. It can only be added via the UI. 
> e.g. This always fails:
> {code:java}
> airflow connections -a --conn_uri hive_cli://something/something
> {code}
> See this for details: https://stackoverflow.com/questions/43999708/adding-a-connection-to-airflow-via-command-line-for-hive-cli-fails/ 



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