You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Yu Liu (JIRA)" <ji...@apache.org> on 2019/02/26 07:11:00 UTC

[jira] [Updated] (AIRFLOW-3952) wrong format of the beeline hiveconf parameters in hive_hooks.py

     [ https://issues.apache.org/jira/browse/AIRFLOW-3952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yu Liu updated AIRFLOW-3952:
----------------------------
    Description: 
Problem:

The support to beeline cli parameters was introduced from 1.8.0, but the format of "hiveconf" was wrong.

Fix:

"\-hiveconf``" should be "\-\-hiveconf".

Reasons:

According to the Hive Beeline source code ([link|https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/BeeLine.java]), 
{code:java}
private static final String HIVE_CONF_PREFIX = "--hiveconf";
{code}
only "--hiveconf" can be accepted. Parameters come with "-hiveconf" are omitted.

 

  was:
Problem:

The support to beeline cli parameters was introduced from 1.8.0, but the format of "hiveconf" was wrong.

Fix:

"-hiveconf" should be "--hiveconf".

Reasons:

According to the Hive Beeline source code ([link|https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/BeeLine.java]), 
{code:java}
private static final String HIVE_CONF_PREFIX = "--hiveconf";
{code}
only "--hiveconf" can be accepted. Parameters come with "-hiveconf" are omitted.

 


> wrong format of the beeline hiveconf parameters in hive_hooks.py
> ----------------------------------------------------------------
>
>                 Key: AIRFLOW-3952
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3952
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: hooks
>    Affects Versions: 1.8.0, 1.8.0b2, 1.8.0b3, 1.8.0b5, 1.8.0rc2, 1.8.0rc3, 1.8.0rc4, 1.8.1rc0, 1.8.1, 1.8.2, 1.9.0, 1.10.0, 1.10.1, 1.10.2
>            Reporter: Yu Liu
>            Assignee: Yu Liu
>            Priority: Major
>             Fix For: 2.0.0, 1.10.3
>
>         Attachments: changed_all__-hiveconf__to__--hiveconf__.patch
>
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> Problem:
> The support to beeline cli parameters was introduced from 1.8.0, but the format of "hiveconf" was wrong.
> Fix:
> "\-hiveconf``" should be "\-\-hiveconf".
> Reasons:
> According to the Hive Beeline source code ([link|https://github.com/apache/hive/blob/master/beeline/src/java/org/apache/hive/beeline/BeeLine.java]), 
> {code:java}
> private static final String HIVE_CONF_PREFIX = "--hiveconf";
> {code}
> only "--hiveconf" can be accepted. Parameters come with "-hiveconf" are omitted.
>  



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