<?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 Re: Updating to Ranger KMS after previously used Hadoop KMS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Updating-to-Ranger-KMS-after-previously-used-Hadoop-KMS/m-p/136986#M19082</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2418/ashaver.html" nodeid="2418"&gt;@Anna Shaverdian&lt;/A&gt;&lt;P&gt;1] For this, existing keys need to be imported into Ranger KMS (using a script provided by Ranger KMS)&lt;/P&gt;&lt;P&gt;2] Please check your KMS repo configuration. Looks like you are using kerberos, but the repo config user name is not a valid kerberos user. Please refer the docs here. &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_KMS_Admin_Guide/content/ch02s01s03.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_KMS_Admin_Guide/content/ch02s01s03.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since KMS repo is already created, username needs to be changed directly in the ranger UI, not in Ambari. &lt;/P&gt;</description>
    <pubDate>Fri, 12 Feb 2016 06:23:41 GMT</pubDate>
    <dc:creator>vperiasamy</dc:creator>
    <dc:date>2016-02-12T06:23:41Z</dc:date>
    <item>
      <title>Updating to Ranger KMS after previously used Hadoop KMS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Updating-to-Ranger-KMS-after-previously-used-Hadoop-KMS/m-p/136985#M19081</link>
      <description>&lt;P&gt;If I previously didn't use Ranger KMS, but used Hadoop KMS to manage my keys:  &lt;U&gt;Will I lose my keys in the Hadoop KMS when I start to use Ranger KMS? Will they all be copied over to the Ranger KMS seamlessly during Ranger KMS install?&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Also, my second question is on trying to set up Ranger KMS.  I'm able to see policies in my Ranger KMS UI at 6080 enforced:&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;PRE&gt;# after updating ranger kms policy to include public permissions to create keys
&amp;gt;&amp;gt; sudo sudo -u hdfs hadoop key create testkeyfromcli1 -size 256 
testkeyfromcli1 has been successfully created with options Options{cipher='AES/CTR/NoPadding', bitLength=256, description='null
KMSClientProvider[http:/XXXXX.com:9292/kms/v1/] has been updated.
# after updating policies to only allow keyadmin permissions to create keys
&amp;gt;&amp;gt; sudo sudo -u hdfs hadoop key create testkeyfromcli2 -size 256
testkeyfromcli2 has not been created. org.apache.hadoop.security.authorize.AuthorizationException: User:hdfs-189 not allowed toeyfromcli2'&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I log into Ranger KMS UI using keyadmin, I notice&lt;/P&gt;&lt;P&gt;1) When I try to view the keys under my kms repo, I see the error: Unauthenticated : Please check the premission in the policy for the use&lt;/P&gt;&lt;P&gt;2) When I try to Test Connection I see: &lt;B&gt;Connection Failed. &lt;/B&gt;Unable to connect repository with given config for hdpClusterName_kms.&lt;/P&gt;&lt;P&gt;&lt;U&gt;Do you know why I can't connect?&lt;/U&gt;  My KMS URL is: kms://http@XXXXXX.com:9292/kms.&lt;/P&gt;&lt;P&gt;In my kms.log, when I try to view the keys in the repo, I do see:
&lt;/P&gt;&lt;PRE&gt;Caused by: java.lang.IllegalArgumentException: Failed to specify server's Kerberos principal name
        at org.apache.hadoop.security.SaslRpcClient.getServerPrincipal(SaslRpcClient.java:322)
        at org.apache.hadoop.security.SaslRpcClient.createSaslClient(SaslRpcClient.java:231)
        at org.apache.hadoop.security.SaslRpcClient.selectSaslClient(SaslRpcClient.java:159)
        at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:396)
        at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:555)
        at org.apache.hadoop.ipc.Client$Connection.access$1800(Client.java:370)
        at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:724)
        at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:720)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:720)
        ... 30 more&lt;/PRE&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 14:47:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Updating-to-Ranger-KMS-after-previously-used-Hadoop-KMS/m-p/136985#M19081</guid>
      <dc:creator>ashaver</dc:creator>
      <dc:date>2016-02-11T14:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Updating to Ranger KMS after previously used Hadoop KMS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Updating-to-Ranger-KMS-after-previously-used-Hadoop-KMS/m-p/136986#M19082</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2418/ashaver.html" nodeid="2418"&gt;@Anna Shaverdian&lt;/A&gt;&lt;P&gt;1] For this, existing keys need to be imported into Ranger KMS (using a script provided by Ranger KMS)&lt;/P&gt;&lt;P&gt;2] Please check your KMS repo configuration. Looks like you are using kerberos, but the repo config user name is not a valid kerberos user. Please refer the docs here. &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_KMS_Admin_Guide/content/ch02s01s03.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_Ranger_KMS_Admin_Guide/content/ch02s01s03.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since KMS repo is already created, username needs to be changed directly in the ranger UI, not in Ambari. &lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 06:23:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Updating-to-Ranger-KMS-after-previously-used-Hadoop-KMS/m-p/136986#M19082</guid>
      <dc:creator>vperiasamy</dc:creator>
      <dc:date>2016-02-12T06:23:41Z</dc:date>
    </item>
  </channel>
</rss>

