Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cannot create user directory after kerberos

Highlighted

Cannot create user directory after kerberos

New Contributor

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,....

1 REPLY 1

Re: Cannot create user directory after kerberos

Champion

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. 

Don't have an account?
Coming from Hortonworks? Activate your account here