title: HDFS Encryption Error | root not allowed to do 'CREATE_KEY'
body: <p>I am using HDP sandbox with Ranger KMS installed as KMS Server. I fired below command on sandbox.</p>
  
  <pre><code> hadoop key create testKey
  </code></pre>
  
  <p>I got below exception as a result.</p>
  
  <pre><code>testKey has not been created. org.apache.hadoop.security.authorize.AuthorizationException: User:root not allowed to do 'CREATE_KEY' on 'testKey'
  </code></pre>
  
  <p>Any pointer on this?</p>