Reply
Highlighted
New Contributor
Posts: 1
Registered: ‎12-15-2018

Cannot create user directory after kerberos

Hi everyone,,,

 

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?

 

Thanks,....

Champion
Posts: 761
Registered: ‎05-16-2016

Re: Cannot create user directory after kerberos

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. 

Announcements