Support Questions
Find answers, ask questions, and share your expertise

Import to HDFS- permission denied

Re: Import to HDFS- permission denied

Super Collaborator

It seems root user does not have suffiecient permission to create directory in HDFS

first become hdfs user

su - hdfs

Run the following command to create /hadoop directory in HDFS File system.

hdfs dfs -mkdir /hadoop/

hdfs dfs -mkdir /hadoop/hdfs

Re: Import to HDFS- permission denied

Explorer

Hi @subhash parise,

Thanks for the answer, yes I think this is the issue and I do not know the HDFS password. The system was set up before I was here, is there a way to reset it?

Thanks,

Badar.

,

Re: Import to HDFS- permission denied

Explorer

Hi @subhash parise,

I have managed to access route and the 'hdfs dfs -mkdir /hadoop' and 'hdfs dfs -mkdir /hadoop/hdfs' commands seemed to go though without issue. Should I now try to move files into hdfs?

Thanks.