Xiaoyu Yao created HADOOP-12521:
-----------------------------------

             Summary: Document 
                 Key: HADOOP-12521
                 URL: https://issues.apache.org/jira/browse/HADOOP-12521
             Project: Hadoop Common
          Issue Type: Improvement
    Affects Versions: 2.6.0
            Reporter: Xiaoyu Yao
            Assignee: Xiaoyu Yao


KMS delegation token support is added since HADOOP-10769 and HADOOP-10770. 
However, the API document at 
https://hadoop.apache.org/docs/stable/hadoop-kms/index.html is still TBD. 
{code}
Delegation Tokens
TBD
{code}

This ticket is opened to document the getdelegationtoken API with its 
Request/Response.
{code}
Request:

[hdfs@c6401 vagrant]$ curl -i --negotiate -u :  -c ~/cookiejar.txt  
"http://c6401.ambari.apache.rg:16000/kms/v1/?op=getdelegationtoken&renewer=JobTracker";
HTTP/1.1 401 Unauthorized
Server: Apache-Coyote/1.1
WWW-Authenticate: Negotiate
Content-Length: 0
Date: Tue, 27 Oct 2015 21:49:15 GMT
{code}

{code}
Response:

HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/json
Content-Length: 120
Date: Tue, 27 Oct 2015 21:49:15 GMT

{"Token":{"urlString":"KAAKaGRmcy1oZHA2NApKb2JUcmFja2VyAIoBUKtGzIGKAVDPU1CBBwQUKoAqp3yAQe2JrbuL26feN8Kv_EAGa21zLWR0AA"}}
{code}



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

Reply via email to