Neeraj Verma created RANGER-2211:
------------------------------------
Summary: 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
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)