Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

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

Open
sridhar1982 opened this issue Jan 23, 2017 · 1 comment

Comments

@sridhar1982
Copy link

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
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants