I just enable Kerberos on my test cluster, however after enabling kerberos, I am not able to create /user/test directory anymore due to permission error.
hadoop fs -mkdir /user/test
mkdir: Permission denied: user=admin, access=WRITE, inode="/user":hdfs:supergroup:drwxr-xr-x
Anyway to fix it?
You can login as hdfs user and create one . To do that so .
1. Log in to the host where Namenode / datanode runining .
2. Get in to the /var/run/cloudera-scm-agent process directory .
3. Find a process directory that is namenode / datanode
4 . Once you get into the directory find the hdfs.keytab file .
5 . Do an Kinit using hdfs.keytab - then you will become an hdfs user and can create folders
Let me know if this is suffice.