I deployed a CnosDB (v2.4.1) with three servers, each having a data node, and one of them also has a meta node.
The write method is as follows:
<code>curl -XPOST -u "root:" "http://127.0.0.1:8902/api/v1/write?db=test" -d "ma,ta=a fa=1i"
</code>
<code>curl -XPOST -u "root:" "http://127.0.0.1:8902/api/v1/write?db=test" -d "ma,ta=a fa=1i"
</code>
curl -XPOST -u "root:" "http://127.0.0.1:8902/api/v1/write?db=test" -d "ma,ta=a fa=1i"
The error message is as follows:
<code>error: 050019, error_message: grpc client request error: The Operation can only Exec in Leader ReplicationSet {id: 38, leader_node_id 15, leader_vnode_id:39 vnodes: [VnodeInfo {id: 39, node_id:15, status: Running }]}
</code>
<code>error: 050019, error_message: grpc client request error: The Operation can only Exec in Leader ReplicationSet {id: 38, leader_node_id 15, leader_vnode_id:39 vnodes: [VnodeInfo {id: 39, node_id:15, status: Running }]}
</code>
error: 050019, error_message: grpc client request error: The Operation can only Exec in Leader ReplicationSet {id: 38, leader_node_id 15, leader_vnode_id:39 vnodes: [VnodeInfo {id: 39, node_id:15, status: Running }]}
Since I has just one meta and that should be the leader. I am running the write POST request on that node. How do I resolve this?