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

Miklos Gergely commented on HIVE-19233:
---------------------------------------

[~ekoifman], [~ashutoshc]

the program in it's current form creates four script files, even if there is 
nothing to do. I suggest the following: let's create each of these scripts only 
if there are actually commands in them, thus Ambari could determine if there is 
something to do by checking the existence of these files. There could be only 
one step in the upgrade process which could do the following: run the program, 
check if it had created any output files (indicating there is work to do), and 
if it did, then fail and notify the user about the location of these files, and 
instruct them to run those files.

I've attached a patch containing this and making the target dir settable by 
program args, please take a look.

> Add utility for acid 1.0 to 2.0 migration
> -----------------------------------------
>
>                 Key: HIVE-19233
>                 URL: https://issues.apache.org/jira/browse/HIVE-19233
>             Project: Hive
>          Issue Type: Bug
>          Components: Transactions
>    Affects Versions: 3.0.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>            Priority: Major
>             Fix For: 3.0.0
>
>         Attachments: HIVE-19233.01.patch, HIVE-19233.02.patch, 
> HIVE-19233.04.patch
>
>




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

Reply via email to