hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Navis (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-6561) Beeline should accept -i option to Initializing a SQL file
Date Thu, 03 Apr 2014 05:18:15 GMT

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

Navis commented on HIVE-6561:
-----------------------------

Yes, I've thought of that. But would it be possible to do something with beeline without connection
for init? I remember there is an issue for beeline to run shell commands like CLI. If init
file is for initializing connection property or resources, doing it after connection would
be meaningless.

> Beeline should accept -i option to Initializing a SQL file
> ----------------------------------------------------------
>
>                 Key: HIVE-6561
>                 URL: https://issues.apache.org/jira/browse/HIVE-6561
>             Project: Hive
>          Issue Type: Improvement
>    Affects Versions: 0.10.0, 0.11.0, 0.12.0
>            Reporter: Xuefu Zhang
>            Assignee: Navis
>         Attachments: HIVE-6561.1.patch.txt
>
>
> Hive CLI has -i option. From Hive CLI help:
> {code}
> ...
>  -i <filename>                    Initialization SQL file
> ...
> {code}
> However, Beeline has no such option:
> {code}
> xzhang@xzlt:~/apa/hive3$ ./packaging/target/apache-hive-0.14.0-SNAPSHOT-bin/apache-hive-0.14.0-SNAPSHOT-bin/bin/beeline
-u jdbc:hive2:// -i hive.rc
> ...
> Connected to: Apache Hive (version 0.14.0-SNAPSHOT)
> Driver: Hive JDBC (version 0.14.0-SNAPSHOT)
> Transaction isolation: TRANSACTION_REPEATABLE_READ
> -i (No such file or directory)
> Property "url" is required
> Beeline version 0.14.0-SNAPSHOT by Apache Hive
> ...
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message