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

container is not running hadoop with localhost 8020 as default namenode url #67

Open sridhar1982 opened 7 years ago

sridhar1982 commented 7 years ago

Hi, I am running 2.6.0 image on my mac which run docker natively. so NO boot2Docker or VM is required.

I started my container with the following command

docker run -p 50070:50070 -p 8020:8020 -d --name hadoop-2.6.0 sequenceiq/hadoop-docker:2.6.0

My Java Application (Spring) is trying to connect to hdfs://localhost:8020 and is failing. but my container is running and telnet on port 8020 works too.

I sshed into container and got the default url

./hdfs getconf -confKey fs.default.name
hdfs://cd710ece3b36:9000

which now points to container id with different port. I think that is causing the problem connecting with my spring application. Is this a bug or do I have to do something to fix this?

Thanks

cgarciae commented 6 years ago

+1