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

Alan Gates commented on HIVE-21034:
-----------------------------------

Option 2 seems like a hassle for everyone, so I agree it's out.

Rather than an environment variable, why not just have the tool prompt and say 
"are you sure y/[n]" with no as the default.  A --yes option can be added to 
the command line that answers all questions with yes so that the tool can still 
be scripted.  This seems to be the way tools like rpm usually handle this.

> Add option to schematool to drop Hive databases
> -----------------------------------------------
>
>                 Key: HIVE-21034
>                 URL: https://issues.apache.org/jira/browse/HIVE-21034
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Daniel Voros
>            Assignee: Daniel Voros
>            Priority: Major
>
> An option to remove all Hive managed data could be a useful addition to 
> {{schematool}}.
> I propose to introduce a new flag {{-dropAllDatabases}} that would *drop all 
> databases with CASCADE* to remove all data of managed tables.



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

Reply via email to