hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Yousufi (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-13964) Add a parameter to beeline to allow a properties file to be passed in
Date Mon, 13 Jun 2016 19:01:30 GMT

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

Abdullah Yousufi commented on HIVE-13964:
-----------------------------------------

With regards to case #3, you need pass in your login credentials as well. For example:

{code}
ConnectionURL=jdbc:hive2://localhost:10000
ConnectionUserName=hive
ConnectionPassword=<password>
{code}

With case #1, the property-file requires a url because that is how the !properties command
works: if you run beeline and execute
{code}
!properties <file>
{code}
you’ll see the ‘Property “url” is required error.

Therefore, I don’t know if it really makes sense to combine command line options, such as
-u, with the property file, as you do in case #2. What happens there is that the shell initially
connects to the url specified by -u, but when the properties command is run on props, it fails
and the shell exits.

> Add a parameter to beeline to allow a properties file to be passed in
> ---------------------------------------------------------------------
>
>                 Key: HIVE-13964
>                 URL: https://issues.apache.org/jira/browse/HIVE-13964
>             Project: Hive
>          Issue Type: New Feature
>          Components: Beeline
>    Affects Versions: 2.0.1
>            Reporter: Abdullah Yousufi
>            Assignee: Abdullah Yousufi
>            Priority: Minor
>             Fix For: 2.2.0
>
>         Attachments: HIVE-13964.01.patch, HIVE-13964.02.patch, HIVE-13964.03.patch
>
>
> HIVE-6652 removed the ability to pass in a properties file as a beeline parameter. It
may be a useful feature to be able to pass the file in is a parameter, such as --property-file.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message