You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2015/09/01 20:18:46 UTC

[jira] [Commented] (AMBARI-12961) Need a robust check for the existence of a package

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

Hudson commented on AMBARI-12961:
---------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit #3365 (See [https://builds.apache.org/job/Ambari-trunk-Commit/3365/])
AMBARI-12961. Need a robust check for the existence of a package (aonishuk) (aonishuk: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=ee53343d507565e75238c984f794e821f37fd630)
* ambari-server/src/main/resources/stacks/HDP/2.2/services/ZOOKEEPER/metainfo.xml
* ambari-server/src/main/resources/stacks/HDP/2.3/services/ZOOKEEPER/metainfo.xml
* ambari-server/src/main/resources/stacks/HDP/2.4/services/ZOOKEEPER/metainfo.xml


> Need a robust check for the existence of a package
> --------------------------------------------------
>
>                 Key: AMBARI-12961
>                 URL: https://issues.apache.org/jira/browse/AMBARI-12961
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Andrew Onischuk
>            Assignee: Andrew Onischuk
>             Fix For: 2.2.0
>
>
> There is a problem in the way Ambari checks for existence of packages to skip
> calls to install.
> The string used to install usually has some wild-cards e.g. `zookeeper_2_2_*`.
> If install is called using this string, it will pull in all packages that
> satisfy the condition.
>   * zookeeper_2_2_6_0_2800-server-3.4.6.2.2.6.0-2800
>   * zookeeper_2_2_6_0_2800-3.4.6.2.2.6.0-2800
> However, if "hadoop_2_2*" is installed first then it only pulls in
> zookeeper_2_2_6_0_2800-3.4.6.2.2.6.0-2800. Existence of this package satisfies
> the check if `zookeeper_2_2_*` is installed and thus
> `zookeeper_2_2_6_0_2800-server-3.4.6.2.2.6.0-2800` does not get installed.
> This resulted in <https://issues.apache.org/jira/browse/AMBARI-12874> where
> "hdp-select set zookeeper-server VERSION" is not called as
> zookeeper_2_2_6_0_2800-server-3.4.6.2.2.6.0-2800 never got installed.



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