big-data-europe / docker-hadoop

Apache Hadoop docker image
2.18k stars 1.27k forks source link

How you create /hadoop/dfs/name dir without ROOT user #151

Open NikosSpanos opened 11 months ago

NikosSpanos commented 11 months ago

In the dockerfiles of /namenode and /datanode you use the following command:

RUN mkdir -p /hadoop/dfs/name. However, when I also use the same command in a same kind of approach I receive an error that mkdir command access denied. I can over pass the error only if I use the command USER root first. But I don't see any similar approach in your scripts