<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Ranger KMS throws exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-throws-exception/m-p/189579#M65258</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My cluster is kerbeorized with KMS. When I execute the following command I am getting the below error. Could anyone help me on this asap.&lt;/P&gt;&lt;P&gt;curl --negotiate -u : -X GET &lt;A href="http://%3cclustername%3e:9292/kms/v1/keyversion/"&gt;http://&amp;lt;clustername&amp;gt;:9292/kms/v1/keyversion/&lt;/A&gt;&amp;lt;keyname@0/_eek?ee_op=decrypt&lt;/P&gt;&lt;P&gt;{ "RemoteException" : { "message" : null, "exception" : "WebApplicationException", "javaClassName" : "javax.ws.rs.WebApplicationException" }&lt;/P&gt;&lt;P&gt;In the kms-audit.log I see the following error "ErrorMsg:'Authentication required' saying that Authentication required.&lt;/P&gt;&lt;P&gt; I specified --negotiate option and -u option as well.&lt;/P&gt;&lt;P&gt;But the below command is working &lt;/P&gt;&lt;P&gt;curl --negotiate -u : -X GET &lt;A href="http://%3cclustername%3e:9292/kms/v1/keyversion/"&gt;http://&amp;lt;clustername&amp;gt;:9292/kms/v1/keyversion/&lt;/A&gt;&amp;lt;keyname@0&lt;/P&gt;&lt;P&gt;{ "name" : "&amp;lt;keyname", "versionName" : "&amp;lt;keyname&amp;gt;&lt;A href="mailto:h@0"&gt;@0&lt;/A&gt;", "material" : "&amp;lt;some value&amp;gt;" }&lt;/P&gt;&lt;P&gt;The user with which the command is being executed has the valid Kerberos ticket and decrypt permissions also set with Ranger kms web ui&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 15:37:05 GMT</pubDate>
    <dc:creator>mravipati</dc:creator>
    <dc:date>2017-07-20T15:37:05Z</dc:date>
    <item>
      <title>Ranger KMS throws exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-throws-exception/m-p/189579#M65258</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My cluster is kerbeorized with KMS. When I execute the following command I am getting the below error. Could anyone help me on this asap.&lt;/P&gt;&lt;P&gt;curl --negotiate -u : -X GET &lt;A href="http://%3cclustername%3e:9292/kms/v1/keyversion/"&gt;http://&amp;lt;clustername&amp;gt;:9292/kms/v1/keyversion/&lt;/A&gt;&amp;lt;keyname@0/_eek?ee_op=decrypt&lt;/P&gt;&lt;P&gt;{ "RemoteException" : { "message" : null, "exception" : "WebApplicationException", "javaClassName" : "javax.ws.rs.WebApplicationException" }&lt;/P&gt;&lt;P&gt;In the kms-audit.log I see the following error "ErrorMsg:'Authentication required' saying that Authentication required.&lt;/P&gt;&lt;P&gt; I specified --negotiate option and -u option as well.&lt;/P&gt;&lt;P&gt;But the below command is working &lt;/P&gt;&lt;P&gt;curl --negotiate -u : -X GET &lt;A href="http://%3cclustername%3e:9292/kms/v1/keyversion/"&gt;http://&amp;lt;clustername&amp;gt;:9292/kms/v1/keyversion/&lt;/A&gt;&amp;lt;keyname@0&lt;/P&gt;&lt;P&gt;{ "name" : "&amp;lt;keyname", "versionName" : "&amp;lt;keyname&amp;gt;&lt;A href="mailto:h@0"&gt;@0&lt;/A&gt;", "material" : "&amp;lt;some value&amp;gt;" }&lt;/P&gt;&lt;P&gt;The user with which the command is being executed has the valid Kerberos ticket and decrypt permissions also set with Ranger kms web ui&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 15:37:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-throws-exception/m-p/189579#M65258</guid>
      <dc:creator>mravipati</dc:creator>
      <dc:date>2017-07-20T15:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger KMS throws exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-throws-exception/m-p/189580#M65259</link>
      <description>&lt;P&gt;decrypt operation needs POST instead of GET. Check the samples form &lt;A href="https://hadoop.apache.org/docs/r2.8.0/hadoop-kms/index.html"&gt;KMS doc&lt;/A&gt; below.&lt;/P&gt;&lt;P&gt;Decrypt Encrypted Key&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REQUEST:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;POST &lt;A href="http://HOST:PORT/kms/v1/keyversion/&amp;lt;version-name&amp;gt;/_eek?ee_op=decrypt" target="_blank"&gt;http://HOST:PORT/kms/v1/keyversion/&amp;lt;version-name&amp;gt;/_eek?ee_op=decrypt&lt;/A&gt;
Content-Type: application/json

{
  "name"        : "&amp;lt;key-name&amp;gt;",
  "iv"          : "&amp;lt;iv&amp;gt;",          //base64
  "material"    : "&amp;lt;material&amp;gt;",    //base64
}
&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;RESPONSE:&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;200 OK
Content-Type: application/json

{
  "name"        : "EK",
  "material"    : "&amp;lt;material&amp;gt;",    //base64
}&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jul 2017 01:54:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-KMS-throws-exception/m-p/189580#M65259</guid>
      <dc:creator>xyao</dc:creator>
      <dc:date>2017-07-21T01:54:11Z</dc:date>
    </item>
  </channel>
</rss>

