Hi Jason,
Out of the box it does not support viewing Web UIs. However, you can easily
make that available by adding one line to config port exposing in
provisioner's docker-compose.yaml[1]. Try to add this:
bigtop:
image: ${DOCKER_IMAGE}
command: /sbin/init
domainname: bigtop.apache.org
privileged: true
mem_limit: ${MEM_LIMIT}
volumes:
- ../../:/bigtop-home
- ./config/hiera.yaml:/etc/puppet/hiera.yaml
- ./config/hieradata:/etc/puppet/hieradata
- ./config/hosts:/etc/hosts
- /sys/fs/cgroup:/sys/fs/cgroup:ro
* ports:*
* - 57000-57099:50070*
* - 57500-57599:50075*
* - 18000-18099:8088*
See [2][3] for reference.
For example, containers' 50070 are mapped host's 50070~50099. The mapping
is automatically done by docker.
You can use the -l command to see actual mapping:
./docker-hadoop.sh -l
Name Command State
Ports
--------------------------------------------------------------------------------------------------------------------------------
20210218_113240_r104_bigtop_1 /sbin/init Up 0.0.0.0:57003->50070/tcp,
0.0.0.0:57503->50075/tcp, 0.0.0.0:18003->8088/tcp
20210218_113240_r104_bigtop_2 /sbin/init Up 0.0.0.0:57002->50070/tcp,
0.0.0.0:57502->50075/tcp, 0.0.0.0:18002->8088/tcp
I think it would be great to open up a PR to add the feature after you have
it tested on your end. What do you think?
Best,
Evans Ye
[1]
https://github.com/apache/bigtop/blob/master/provisioner/docker/docker-compose.yml
[2] https://docs.docker.com/engine/reference/run/#expose-incoming-ports
[3] https://github.com/compose-spec/compose-spec/blob/master/spec.md#ports
Jason Wen <[email protected]> 於 2021年2月18日 週四 上午12:44寫道:
> Hi,
>
>
>
> I am following
> https://cwiki.apache.org/confluence/display/BIGTOP/Quickstart+Guide%3A+Bigtop+Integration+Test+Framework+2.0
> to use bigtop. I have deployed a Hadoop cluster successfully using `
> ./gradlew docker-provisioner`. How can I access the
> Namenode/ResourceManager web UI from my local machine?
>
>
>
> Thanks,
>
> Jason
>