[
https://issues.apache.org/jira/browse/RANGER-2211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16608770#comment-16608770
]
Ramesh Mani commented on RANGER-2211:
-------------------------------------
[~nxverma] Please use Apache Ranger Rest V2 API. Refer the documentation.
https://cwiki.apache.org/confluence/display/RANGER/Apache+Ranger+0.6+-+REST+APIs+for+Service+Definition%2C+Service+and+Policy+Management#ApacheRanger0.6-RESTAPIsforServiceDefinition,ServiceandPolicyManagement-UpdateServiceDefinitionbyname
> Yarn Ranger Repository creation Public API not working in 1.0.0
> ----------------------------------------------------------------
>
> Key: RANGER-2211
> URL: https://issues.apache.org/jira/browse/RANGER-2211
> Project: Ranger
> Issue Type: Bug
> Components: Ranger
> Affects Versions: 1.0.0
> Reporter: Neeraj Verma
> Priority: Major
>
> We are trying to create Yarn repository using public API
> [https://HOSTNAME/service/public/api/repository|https://hostname/service/public/api/repository]
> .
> But we always get error
> {
> "statusCode": 1,
> "msgDesc": "(0) Validation failure: error code[1009], reason[Missing service
> def], field[type], subfield[null], type[missing] "
> }
>
> Sample POST request
> {
> "name": "CLUSTER_NAME-yarn",
> "description": "Ranger service for CLUSTER_NAME",
> "repositoryType": "yarn",
> "config": "\{ \"username\": \"policymgr\", \"password\": \"policymgr\",
> \"yarn.url\": \"http://RESOURCEIP:8088\", \"hadoop.security.authentication\":
> \"simple\", \"commonNameForCertificate\": \"\" }",
> "isActive": true
> }
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)