Simple way to kinit as a Hadoop system user with CDH
Sometimes you may need to kinit as a Hadoop system user such as hive or hdfs to troubleshoot a problem. The simplest way to do this is to use the keytab files that are generated by Cloudera Manager.
1. First login in to Cloudera Manager
2. Go to Hosts > Roles
3. Depending on which user you want to kinit as identify the server that is running the appropriate service. For example, if you want to kinit as HDFS you will need to SSH to a node that has the DataNode (DN) or NameNode (NN) roles. Alternatively if you want to kinit as hive it is easiest to SSH to a server with the HiveServer2 role (HS2).
4. SSH to the server then run the command below replacing the user variable with the actual hadoop user you wish to kinit as:
1. First login in to Cloudera Manager
2. Go to Hosts > Roles
3. Depending on which user you want to kinit as identify the server that is running the appropriate service. For example, if you want to kinit as HDFS you will need to SSH to a node that has the DataNode (DN) or NameNode (NN) roles. Alternatively if you want to kinit as hive it is easiest to SSH to a server with the HiveServer2 role (HS2).
4. SSH to the server then run the command below replacing the user variable with the actual hadoop user you wish to kinit as:
Comments
Post a Comment