ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-8164) Repository Version Management - Create API and BE support for creating/retrieving repo versions
Date Fri, 07 Nov 2014 15:04:33 GMT

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

Hudson commented on AMBARI-8164:
--------------------------------

SUCCESS: Integrated in Ambari-trunk-Commit-docker #152 (See [https://builds.apache.org/job/Ambari-trunk-Commit-docker/152/])
AMBARI-8164. Repository Version Management - Create API and BE support for creating/retrieving
repo versions (Yurii Shylov via ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1bf2795a462e9780f482de306b7eeaf3c6e51f13)
* ambari-server/src/main/java/org/apache/ambari/server/api/services/RepositoryVersionService.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/spi/Resource.java
* ambari-server/src/test/java/org/apache/ambari/server/api/resources/RepositoryVersionResourceDefinitionTest.java
* ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
* ambari-server/src/test/java/org/apache/ambari/server/orm/dao/RepositoryVersionDAOTest.java
* ambari-server/src/main/java/org/apache/ambari/server/orm/dao/RepositoryVersionDAO.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractControllerResourceProvider.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProvider.java
* ambari-server/src/main/resources/META-INF/persistence.xml
* ambari-server/src/main/resources/Ambari-DDL-Postgres-CREATE.sql
* ambari-server/src/main/resources/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql
* ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog200.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/RepositoryVersionResourceDefinition.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/ResourceProviderFactory.java
* ambari-server/src/main/java/org/apache/ambari/server/api/resources/ResourceInstanceFactoryImpl.java
* ambari-server/src/main/java/org/apache/ambari/server/controller/ControllerModule.java
* ambari-server/src/test/java/org/apache/ambari/server/api/services/RepositoryVersionServiceTest.java
* ambari-server/src/test/java/org/apache/ambari/server/controller/internal/RepositoryVersionResourceProviderTest.java
* ambari-server/src/main/resources/Ambari-DDL-Oracle-CREATE.sql
* ambari-server/src/main/java/org/apache/ambari/server/orm/entities/RepositoryVersionEntity.java


> Repository Version Management - Create API and BE support for creating/retrieving repo
versions
> -----------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-8164
>                 URL: https://issues.apache.org/jira/browse/AMBARI-8164
>             Project: Ambari
>          Issue Type: Technical task
>          Components: ambari-server
>    Affects Versions: 2.0.0
>            Reporter: Yurii Shylov
>            Assignee: Yurii Shylov
>             Fix For: 2.0.0
>
>         Attachments: AMBARI-8164.patch
>
>
> Create database table *repoversion*:
> |Column name|type|nullable|key|example|
> |repoversion_id|BIGINT|no|PK|1|
> |stack|VARCHAR(255)|no|UK1|HDP-2.2|
> |version|VARCHAR(255)|no|UK1|2.2.0.1-885 (this is needed for comparisons, anything after
the “-” is an internal build number)|
> |display_name|VARCHAR(128)|no|UK2|HDP 2.2.0.1-885 (solely for UI purposes)|
> |upgrade_pack|VARCHAR(255)|no| |xyz (perhaps some relative file name)
> At first, this may be a folder. Later on, it could be a zip file
> |repositories|TEXT|no| | {code}
> {
>  [
>   {
>     "os": "redhat6",
>     "baseurls": [
>       {
>         "type": "HDP",
>         "baseurl":"http://host1/hdp"
>       },
>       {
>          "type": "HDP-UTILS",
>          "baseurl": "http://host1/hdp-utils"
>       }
>     ]
>   }
>  ]
> }
> {code}
> |
> Create the following API:
> {code}
> GET /api/v1/repository_versions
> {
>   "items": [
>     {
>       "RepositoryVersion": {
>         "id": "1"
>       }
>     }
>   ]
> }
> {code}
> {code}
> GET /api/v1/repository_versions/1
> {
>   "RepositoryVersion": {
>     "id": "1",
>     "display_name": "HDP 2.2.0.1",
>     "stack": "HDP-2.2",
>     "version": "2.2.0.1-885",
>     "upgrade_pack": "xyz",
>     "repositories": [
>       {
>         "os": "redhat6",
>         "baseurls": [
>           {
>             "id": "HDP-2.2.0.1-885",
>             "type": "HDP",
>             "baseurl": "http://host1/hdp"
>           },
>           {
>             "id": "HDP-UTILS-1.0.0.20",
>             "type": "HDP-UTILS",
>             "baseurl": "http://host1/hdp-utils"
>           }
>         ]
>       }
>     ]
>   }
> }
> {code}
> {code}
> POST /api/v1/repository_versions
> {
>   "RepositoryVersion": {
>     "display_name": "My 2.2.0.1-885",  
>     "version": "2.2.0.1-885",
>     "stack": "HDP-2.2",
>     "upgrade_pack": "xyz",
>     "repositories": [
>       {
>         "os": "redhat6",
>         "baseurls": [
>           {
>             "id": "HDP-2.2.0.1-885",
>             "type": "HDP",
>             "baseurl": "http://host1/hdp"
>           },
>           {
>             "id": "HDP-UTILS-1.0.0.20",
>             "type": "HDP-UTILS",
>             "baseurl": "http://host1/hdp-utils"
>           }
>         ]
>       }
>     ]
> }
> {code}



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

Mime
View raw message