taosdata/TDengine

can't use client to query data from a follower node

Open

#26,465 opened on Jul 8, 2024

View on GitHub
 (1 comment) (0 reactions) (0 assignees)C (5,002 forks)batch import
help wantedquestion

Repository metrics

Stars
 (24,849 stars)
PR merge metrics
 (Avg merge 1d 1h) (4 merged PRs in 30d)

Description

Ubuntu系统,三个服务器分别为tdengine01、tdengine02和tdengine03 /etc/hosts中配置如下: 192.168.1.190 tdengine00 192.168.1.191 tdengine01 192.168.1.192 tdengine02

/etc/taos/taos.cfg下配置如下: ############### 1. Cluster End point ############################

The end point of the first dnode in the cluster to be connected to when this dnode or the CLI utility is started

firstEp tdengine02:6030

The end point of the second dnode to be connected to if the firstEp is not available

secondEp tdengine01:6030

############### 2. Configuration Parameters of current dnode #####

The FQDN of the host on which this dnode will be started. It can be IP address

fqdn tdengine02

启动服务后三台服务器中均能查询到数据(直接再服务器终端中进行数据查询): taos> show databases; name |

information_schema | performance_schema | log | now_tech | Query OK, 4 row(s) in set (0.004447s) 其中now_tech为我新增的数据库 然而,当我通过Windows的TDengine-client登录服务器查询数据时,只有做为主服务器的tdengine02上能查询到数据,其它从服务器上均无法查询到数据,请问这是BUG还是配置错误? 主服务器上: image 从服务器上: image image

Contributor guide