docker-hadoop icon indicating copy to clipboard operation
docker-hadoop copied to clipboard

Cannot open UI via default ip:ports

Open staminna opened this issue 6 years ago • 7 comments

Hi

I am using Macos and latests docker. I am instaling and doing the instructions from top to bottum using first

$ docker-compose up.
$ docker network inspect docker-hadoop_default
[
    {
        "Name": "docker-hadoop_default",
        "Id": "ac0edd9732673890e6e1d9ddd5b0efaaf84de22384b29535e7950efbc659c56d",
        "Created": "2018-10-13T15:30:10.6899672Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "172.19.0.0/16",
                    "Gateway": "172.19.0.1"
                }
            ]
        },
        "Internal": false,
        "Attachable": false,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "013bb40c313c7be8557e19bf2e40892d0a6a6374da7601f21b2ed4e734d33d4b": {
                "Name": "datanode3",
                "EndpointID": "de8f76d89f34209bb7186e70c4c4fdb563da16414c3814a8ecbd60de65cd99dc",
                "MacAddress": "02:42:ac:13:00:04",
                "IPv4Address": "172.19.0.4/16",
                "IPv6Address": ""
            },
            "23df674bc81d609600da7d06452d2e28f5160191e8ee2f9450e412d8321692f6": {
                "Name": "datanode1",
                "EndpointID": "cb12e0292dff539ffe015153a8562de0cd2f9252611ad9feee9b7eb8a467158a",
                "MacAddress": "02:42:ac:13:00:03",
                "IPv4Address": "172.19.0.3/16",
                "IPv6Address": ""
            },
            "2b9d0c7c613403a75a76f228f2827f801d29e59d2ab8a740a1d4e1b6d343632a": {
                "Name": "namenode",
                "EndpointID": "a0fb15337946fdca7ee60ed82a42e73a6d47616269ebf4d538b11025281a0a6e",
                "MacAddress": "02:42:ac:13:00:02",
                "IPv4Address": "172.19.0.2/16",
                "IPv6Address": ""
            },
            "aed21bba8203c70b77d5cd571d8b0c0004760f0f57804b536596bb44171e6713": {
                "Name": "datanode2",
                "EndpointID": "f3a74788a3a246d1e5916e65c83553f42b832e39b6b568a972a5eb36dfac17e6",
                "MacAddress": "02:42:ac:13:00:05",
                "IPv4Address": "172.19.0.5/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {}
    }
]

No errors are shown in the logs. I can't open up the User Interface of namenode. I didn't change anything and I am using http://172.19.0.2:50070/dfshealth.html#tab-overview which should be the default indicated by networks inspect.

Nothing seems wrong, yet it leads to

ERR_CONNECTION_TIMED_OUT

.

Is it mandatory to "Configure Environment Variables The configuration parameters can be specified in the hadoop.env file or as environmental variables for specific services (e.g. namenode, datanode etc.):" before trying to open the UI?

staminna avatar Oct 13 '18 17:10 staminna

It is not mandatory to make any changes to the provided configuration in order to access the UI. For me it works as it is so I cannot reproduce this. Do you get any other errors beside ERR_CONNECTION_TIMED_OUT?

gmouchakis avatar Oct 22 '18 14:10 gmouchakis

No errors. But I did clone the Master branch. I deleted the master repository and cloned the latest branch. What is exactly the default url and port for this?

staminna avatar Oct 31 '18 17:10 staminna

Having the same issue on my local

Environment: macOS High Sierra 10.13.6 Docker for Mac 2.0

godhand1607 avatar Dec 07 '18 11:12 godhand1607

same issue

Environment: macOS Mojave 10.14.2 Docker for Mac 2.0.0.2

ueqt avatar Feb 10 '19 08:02 ueqt

It's look like not assign localhost:port to link namenode:9870. So try to modify docker-compose.yml.

services:
  namenode:
    ...
    ports:
      - 9870:9870

And access url localhost:9870.

TimKingNF avatar May 18 '19 04:05 TimKingNF

I have the same issue on my laptop, even after mapping ports 9870:9870 of namenode container

Environment: macOS Mojave 10.14.4 Docker for Mac 2.0.0.3

mt40 avatar May 21 '19 10:05 mt40

It's look like not assign localhost:port to link namenode:9870. So try to modify docker-compose.yml.

services:
  namenode:
    ...
    ports:
      - 9870:9870

And access url localhost:9870.

  1. Update the ports as mentioned above
  2. Run docker-machine config {your_machine_name}. Notice the machine IP in the last line
~user ~> docker-machine config default
--tlsverify
--tlscacert="/Users/~user/.docker/machine/machines/default/ca.pem"
--tlscert="/Users/~user/.docker/machine/machines/default/cert.pem"
--tlskey="/Users/~user/.docker/machine/machines/default/key.pem"
-H=tcp://192.168.64.3:2376
  1. Access namenode via http://{Docker Machine IP}:9870/dfshealth.html#tab-overview

kingspp avatar Sep 14 '19 06:09 kingspp