You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@iotdb.apache.org by "Yongzao Dan (Jira)" <ji...@apache.org> on 2023/03/06 08:47:00 UTC
[jira] [Assigned] (IOTDB-5107) [confignode] cn_internal_address should not bind IP address
[ https://issues.apache.org/jira/browse/IOTDB-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yongzao Dan reassigned IOTDB-5107:
----------------------------------
Sprint: Catalyst-Backlog (was: ConfigNode-Backlog)
Assignee: Yongzao Dan (was: 伊丹翔)
> [confignode] cn_internal_address should not bind IP address
> -----------------------------------------------------------
>
> Key: IOTDB-5107
> URL: https://issues.apache.org/jira/browse/IOTDB-5107
> Project: Apache IoTDB
> Issue Type: Bug
> Affects Versions: 1.0.0
> Reporter: changxue
> Assignee: Yongzao Dan
> Priority: Critical
> Attachments: image-2022-12-01-22-10-49-805.png
>
>
> [confignode] cn_internal_address should not bind IP address
> description:
> The docker container of config node start failed, because it do socket connection to itself – a16/172.20.31.16:22277
> a16 is the hostname of computer and the IP address upstairs is the real IP of computer.
> 我希望第一个confignode能不进行下面的socket连接,能让第一个confignode顺利启动起来。否则,如下面图中所示就是个死循环,confignode服务启动不了,所以22277端口不能映射到物理机上,没有映射到物理机,那么socket就连接不上,连接不上,confignode服务就启动不了。
> 背景:
> 使用docker部署IoTDB集群,目前只能走host和overlay网络。想要使其能够使用bridge网络部署。
> 启动confignode时日志:
> !image-2022-12-01-22-10-49-805.png|width=762,height=367!
> docker-compose.yml:
> {code:java}
> version: "3"
> services:
> iotdb-confignode:
> image: apache/iotdb:1.0.1-SNAPSHOT-confignode
> container_name: iotdb-confignode
> hostname: a16
> ports:
> - "22277:22277"
> - "22278:22278"
> environment:
> - cn_internal_address=a16
> - cn_target_config_node_list=a16:22277
> - schema_replication_factor=3
> - schema_region_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensu
> - config_node_consensus_protocol_class=org.apache.iotdb.consensus.ratis.RatisConsensus
> volumes:
> - /etc/hosts:/etc/hosts:ro
> - ./data/confignode:/iotdb/data
> - ./logs/confignode:/iotdb/logs
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)