Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error starting the containers #39

Open
wise-coders opened this issue Jan 26, 2021 · 4 comments
Open

Error starting the containers #39

wise-coders opened this issue Jan 26, 2021 · 4 comments

Comments

@wise-coders
Copy link

Hello,

I tried to start the containers, but I got this errors. What should I do?
c:\Temp\docker-hive>docker-compose up -d
Starting docker-hive_datanode_1 ... error Starting docker-hive_hive-metastore-postgresql_1 ...
Starting docker-hive_hive-metastore_1 ...
Starting docker-hive_namenode_1 ...
Starting docker-hive_hive-server_1 ...
Starting docker-hive_presto-coordinator_1 ...
Starting docker-hive_namenode_1 ... error Starting docker-hive_hive-metastore-postgresql_1 ... done Starting docker-hive_hive-metastore_1 ... done
Starting docker-hive_hive-server_1 ... done Starting docker-hive_presto-coordinator_1 ... done
ERROR: for datanode Cannot start service datanode: Ports are not available: listen tcp 0.0.0.0:50075: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

ERROR: for namenode Cannot start service namenode: Ports are not available: listen tcp 0.0.0.0:50070: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: Encountered errors while bringing up the project.

@ezgoesit247
Copy link

ezgoesit247 commented Jan 26, 2021 via email

@MrAsimZahid
Copy link

MrAsimZahid commented Feb 25, 2021

@wise-coders @ezgoesit247 I am having the same issue. Were you able to resolve this problem?
I tried different solutions from StackOverflow but no resolution.

OS: Windows 10 latest updated version

I ran following command

docker-compose up -d

Resultant error

Removing docker-hive_datanode_1
Starting docker-hive_hive-metastore-postgresql_1 ...
Starting docker-hive_presto-coordinator_1        ...
Recreating 56d87462a6dd_docker-hive_datanode_1   ...
Starting docker-hive_namenode_1                  ... error                                                              Starting docker-hive_hive-server_1               ...
Recreating 56d87462a6dd_docker-hive_datanode_1   ... error                                                              Starting docker-hive_hive-metastore-postgresql_1 ... done                                                               Starting docker-hive_presto-coordinator_1        ... done                                                               d: An attempt was made to access a socket in a way forbidden by its access permissions.

Starting docker-hive_hive-server_1               ... done                                                               Starting docker-hive_hive-metastore_1            ... done                                                               
ERROR: for namenode  Cannot start service namenode: Ports are not available: listen tcp 0.0.0.0:50070: bind: An attempt was made to access a socket in a way forbidden by its access permissions.

ERROR: for datanode  Cannot start service datanode: Ports are not available: listen tcp 0.0.0.0:50075: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
ERROR: Encountered errors while bringing up the project.

cc: @gmouchakis @martint @earthquakesan @shawnzhu

@MrAsimZahid
Copy link

Solution:

I resolved the issue.
If you have tried every solution out there and wasn't able to resolve it.
Try this.
Simply, change port numbers in docker-compose.yml file
save it.
now run docker-compose up -d

and guess what your container is up

PS C:\docker-hive> docker-compose up -d
Starting docker-hive_hive-metastore_1            ... done                                   
Starting docker-hive_hive-metastore-postgresql_1 ... done                                   
Starting docker-hive_namenode_1                  ... done                                   
Starting docker-hive_datanode_1                  ... done                                   
Starting docker-hive_presto-coordinator_1        ... done                                   
Starting docker-hive_hive-server_1               ... done 

To shutdown docker container

run this command

docker-compose down

@IzayoiAster
Copy link

change 50070:50070 to 40070:50070 and 50075:50075 to 40075:50075 in docker-compose.yml

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

No branches or pull requests

4 participants