sequenceiq / hadoop-docker

Hadoop docker image
https://registry.hub.docker.com/u/sequenceiq/hadoop-docker/
Apache License 2.0
1.21k stars 560 forks source link

Can't write to hdfs #58

Open eamocanu opened 7 years ago

eamocanu commented 7 years ago

The user "root" doesn't have write access to the hdfs directory "/topics".

I start up the docker image: docker run -d -p 9000:9000 sequenceiq/hadoop-docker:2.7.1

then run kafka connector-hdfs and get this error:

[2016-09-12 17:19:28,039] INFO Couldn't start HdfsSinkConnector: (io.confluent.connect.hdfs.HdfsSinkTask:72) org.apache.kafka.connect.errors.ConnectException: org.apache.hadoop.security.AccessControlException: Permission denied: user=fclvappi005561, access=WRITE, inode="/topics":root:supergroup:drwxr-xr-x

Fr8Traindb commented 7 years ago

I have the same problem. Did you find a workaround?

eamocanu commented 7 years ago

Nope I went another route. Try file permissions or run it in root mode.