You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/08/09 09:27:00 UTC
[jira] [Comment Edited] (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=16574551#comment-16574551 ]
Ash Berlin-Taylor edited comment on AIRFLOW-1530 at 8/9/18 9:26 AM:
--------------------------------------------------------------------
Fixed by added extra args to the connections cli {{\--conn_type}}, {{\-\-conn_host}}, {{\-\-conn_login}}, {{\-\-conn_password}}, {{\-\-conn_schema}}, and {{\-\-conn_port}}
was (Author: ashb):
Fixed by added extra args to the connections cli {{--conn_type}}, {{--conn_host}}, {{--conn-login}}, {{--conn-password}}, {{--conn_schema}}, and {{--conn_port}}
> 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)