You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Siyao Meng (Jira)" <ji...@apache.org> on 2023/08/18 23:59:00 UTC

[jira] [Commented] (HDDS-3497) Host cannot access DN in the docker container when using docker-compose

    [ https://issues.apache.org/jira/browse/HDDS-3497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17756205#comment-17756205 ] 

Siyao Meng commented on HDDS-3497:
----------------------------------

Hi [~maobaolong], this is more of a docker-compose file management thing. You will have to explicitly map the datanode port out to the host in order to make it accessible from host.

From:
{code:title=https://github.com/apache/ozone/blob/88f39dfaf53f382a5567b4e816e8c8e90db7df88/hadoop-ozone/dist/src/main/compose/ozone/docker-compose.yaml#L33-L37}
  datanode:
    <<: *common-config
    ports:
      - 9864
      - 9882
{code}

To:
{code}
  datanode:
    <<: *common-config
    ports:
      - 9864:9864
      - 9882:9882
{code}

Also we usually use ozone shell inside container (not on the host directly). Hope this helps.

> Host cannot access DN in the docker container when using docker-compose
> -----------------------------------------------------------------------
>
>                 Key: HDDS-3497
>                 URL: https://issues.apache.org/jira/browse/HDDS-3497
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: docker
>    Affects Versions: 1.0.0
>            Reporter: Baolong Mao
>            Priority: Major
>         Attachments: screenshot-1.png
>
>
> Now i using docker-compose to start a ozone cluster, and i create volume and bucket, but i cannot put some file into this ozone cluster in my host node.
> Following is the step to reproduce.
> ozone-0.6.0-SNAPSHOT/compose/ozone/run.sh
> pwd=ozone-0.6.0-SNAPSHOT
> bin/ozone sh vol create myvol
> bin/ozone sh bucket create myvol/mybucket
> bin/ozone sh key put /myvol/mybucket/README.md README.md
> The last command stuck. 
> And i do some debug work. I see the ratis pipeline here with nodes using ip:port, in the host node, i cannot access these ip in another network
>  !screenshot-1.png! 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org