You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/12/20 17:09:58 UTC

[jira] [Commented] (KNOX-818) Admin API PUT corrupts the topology file

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

ASF subversion and git services commented on KNOX-818:
------------------------------------------------------

Commit f31e46f5c25b882f3904648907ba1c94dcab794c in knox's branch refs/heads/master from [~sumit.gupta]
[ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=f31e46f ]

KNOX-818 created new jaxb beans for REST API


> Admin API PUT corrupts the topology file
> ----------------------------------------
>
>                 Key: KNOX-818
>                 URL: https://issues.apache.org/jira/browse/KNOX-818
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Sumit Gupta
>            Assignee: Sumit Gupta
>             Fix For: 0.11.0
>
>
> When using the Admin API to PUT/save a topology file, the content doesn't always wind up being correct.
> For example when saving the sandbox topology:
> curl -iku admin:admin-password -H "Accept: application/xml" -H "Content-Type: application/xml" -T sandbox.xml -X PUT http://localhost:8443/gateway/admin/api/v1/topologies/sandbox
> The following is saved:
> {code}
> <?xml version="1.0" encoding="UTF-8"?>
> <topology>
>    <name>sandbox2</name>
>    <gateway>
>       <provider>
>          <role>authentication</role>
>          <name>ShiroProvider</name>
>          <enabled>true</enabled>
>       </provider>
>       <provider>
>          <role>identity-assertion</role>
>          <name>Default</name>
>          <enabled>true</enabled>
>       </provider>
>       <provider>
>          <role>hostmap</role>
>          <name>static</name>
>          <enabled>true</enabled>
>       </provider>
>    </gateway>
>    <service>
>       <role>NAMENODE</role>
>       <url>hdfs://localhost:8020</url>
>    </service>
>    <service>
>       <role>JOBTRACKER</role>
>       <url>rpc://localhost:8050</url>
>    </service>
>    <service>
>       <role>WEBHDFS</role>
>       <url>http://localhost:50070/webhdfs</url>
>    </service>
>    <service>
>       <role>WEBHCAT</role>
>       <url>http://localhost:50111/templeton</url>
>    </service>
>    <service>
>       <role>OOZIE</role>
>       <url>http://localhost:11000/oozie</url>
>    </service>
>    <service>
>       <role>WEBHBASE</role>
>       <url>http://localhost:60080</url>
>    </service>
>    <service>
>       <role>HIVE</role>
>       <url>http://localhost:10001/cliservice</url>
>    </service>
>    <service>
>       <role>RESOURCEMANAGER</role>
>       <url>http://localhost:8088/ws</url>
>    </service>
>    <service>
>       <role>DRUID-COORDINATOR-UI</role>
>       <url>http://localhost:8081</url>
>    </service>
>    <service>
>       <role>DRUID-COORDINATOR</role>
>       <url>http://localhost:8081</url>
>    </service>
>    <service>
>       <role>DRUID-BROKER</role>
>       <url>http://localhost:8082</url>
>    </service>
>    <service>
>       <role>DRUID-ROUTER</role>
>       <url>http://localhost:8082</url>
>    </service>
>    <service>
>       <role>DRUID-OVERLORD</role>
>       <url>http://localhost:8090</url>
>    </service>
>    <service>
>       <role>DRUID-OVERLORD-UI</role>
>       <url>http://localhost:8090</url>
>    </service>
> </topology>
> {code}



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