hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Peña (JIRA) <>
Subject [jira] [Commented] (HIVE-13964) Add a parameter to beeline to allow a properties file to be passed in
Date Thu, 09 Jun 2016 14:54:20 GMT


Sergio Peña commented on HIVE-13964:

Thanks [~ayousufi].

1. Could you add one space between braces and parenthesis? We should follow the code convention
we see along the Hive code.
if(propertyFile != null){
	dispatch("!properties " + propertyFile);

2. When a pass the --property-file without a parameter, I just see the help message displayed,
but it does not show the error or why it failed. Can we add that too?
$ beeline --property-file
Usage: java org.apache.hive.cli.beeline.BeeLine 
   -u <database url>               the JDBC URL to connect to

3. Should we fail the execution of beeline if the file passed does not exist? [~xuefuz] What
do you think about this? I think we should exit from beeline if a parameter like this is passed.
If users have this parameter in a script, they will never know that a file does not exist,
and they will continue executing their queries without noticing.
$ beeline --property-file
a (No such file or directory)
Beeline version 2.2.0-SNAPSHOT by Apache Hive

> Add a parameter to beeline to allow a properties file to be passed in
> ---------------------------------------------------------------------
>                 Key: HIVE-13964
>                 URL:
>             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-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

View raw message