Open wise-coders opened 3 years ago
Something is running, and listening, at 0.0.0.0:50075 and 0.0.0.0:50070. If those weren't running then you should be able to connect.
-ez
On Tue, Jan 26, 2021, 3:10 AM Wise Coders notifications@github.com wrote:
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.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/big-data-europe/docker-hive/issues/39, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZBZOCBIYR45ATYC2LYKDS32BIHANCNFSM4WTDMHPQ .
@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
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
change 50070:50070 to 40070:50070 and 50075:50075 to 40075:50075 in docker-compose.yml
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.