Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Create a principle to use with Ranger Repo for logging in KMS
  • Create principal

 

Code Block
languagebash
kadmin.local
addprinc <principal name>
Enter the password
exit

...

Code Block
kinit <principal name>
Enter password
klist
kdestroy

...

  • Edit “hdfs­-site.xml”

...

Code Block
languagebash
Replace localhost with <internal host name>
Go to path cd/usr/hdp/<version>/hadoop/conf/
vim hdfs-site.xml
For property “dfs.encryption.key.provider.uri” ,enter the value “kms://http@<internal host name>:9292/kms”
save and quite

...

Code Block
su ­-l hdfs -­c "/usr/hdp/<version>/hadoop/sbin/hadoop­-daemon.sh stop namenode"
su ­-l hdfs -­c "/usr/hdp/<version>/hadoop/sbin/hadoop­-daemon.sh start namenode"

 

  • Restart krb5kdc

...

Code Block
service krb5kdc restart

...

  • Run setup
Code Block
./setup.sh

 

  • start the KMS server

 

Code Block
rangee-kms start

...

    1. REPOSITORY_NAME: name specified in installed.properties (e.g kmsdev)

    2. KMS URL: kms://http@<internal host name>:9292/kms
    3. Username:Principle that will be used for kms (e.g.testkms1@EXAMPLE.COM)
    4. Password:Password for principle(e.g.testkms1 password)
    5. Check test connection
    • Please check the logged in user (for e.g “keyadmin”) has the permission for KMS operation You can navigate to KMS Tab and do all the operation related to the KMS.

Image Added

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



 

 

 

 

 


 

 

 

 

...