[
https://issues.apache.org/jira/browse/AMBARI-14949?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15135161#comment-15135161
]
Andrew Onischuk commented on AMBARI-14949:
------------------------------------------
1.
{noformat}
+ parser.add_option("-u", "--upgrade", dest="upgrade", action="store_true",
+ help="flag to indicate script is being run for upgrade",
default=False)
{noformat}
If -v is specified this is upgrade else it's not (and the current version is
taken). This is the way we designed this in the first place.
2.
{noformat}
+ if options.upgrade:
+ Logger.info("Skipping uploading oozie shared lib during upgrade")
+ else:
+ raise Exception("Incorrect Logic!")
{noformat}
Also unsure if we need to raise exception here.
> Ambaripreupload should skip uploading oozie shared lib for upgrade
> ------------------------------------------------------------------
>
> Key: AMBARI-14949
> URL: https://issues.apache.org/jira/browse/AMBARI-14949
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.2.1
> Reporter: Jayush Luniya
> Assignee: Jayush Luniya
> Priority: Critical
> Fix For: 2.2.2
>
> Attachments: AMBARI-14949.patch
>
>
> In syspreped clusters, while running RU Oozie service checks before upgrade
> Oozie will fail
> This is because Ambaripreupload will overwrite the old version oozie shared
> lib in HDFS with new version.
> We should add additional flag (--upgrade) to skip uploading oozie shared lib
> when Ambaripreupload needs to be run before upgrades.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)