ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xi Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-15147) Patch Upgrade: integrate API to POST new repo version when registering new version
Date Tue, 23 Feb 2016 23:45:18 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-15147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Xi Wang updated AMBARI-15147:
-----------------------------
    Attachment: AMBARI-15147.patch

> Patch Upgrade: integrate API to  POST new repo version when registering new version
> -----------------------------------------------------------------------------------
>
>                 Key: AMBARI-15147
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15147
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-web
>    Affects Versions: 2.4.0
>            Reporter: Xi Wang
>            Assignee: Xi Wang
>             Fix For: 2.4.0
>
>         Attachments: AMBARI-15147.patch, AMBARI-15147.patch
>
>
> On Register Version page, UI provides two ways to upload version definition file, both
should POST new stack version. 
> 1. Browse local files and then Upload file,
> {code}
> POST /api/v1/version_definitions
> <?xml ... >
> {code}
> The equivalent curl call would look like so (the text/xml header is required):
> {code}
> curl -u admin:admin -H "Content-Type: text/xml" -X POST -d @ambari-server/src/test/resources/hbase_version_test.xml
http://localhost:8080/api/v1/version_definitions
> {code}
> 2. Enter the Url then click on "Read Version File" button,
> {code}
> POST  /api/v1/version_definitions
> {
>   "RepositoryVersions": {
>     "version_url": "http://somewhere/version-definition.xml"
>   }
> }
> {code}



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

Mime
View raw message