Please try
ratis sh peer add -peers 127.0.0.1:6000,127.0.0.1:6001,127.0.0.1:6002 -address
127.0.0.1:6003

-peers: existing peers
-address: the new peer

Tsz-Wo


On Mon, Nov 27, 2023 at 1:11 PM Mahesh Garlapati
<[email protected]> wrote:

> +Adding dev group.
>
> From: Mahesh Garlapati <[email protected]>
> Date: Monday, November 27, 2023 at 12:34 PM
> To: [email protected] <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: Re: {EXTERNAL} Re: Usage of adding nodes to the cluster - Raft
> Implementation - Arithmetic Example
> Hello Tsz-Wo,
>
> I am able to run the ratis command but I am getting peer exception when I
> am trying to add 127.0.0.1:6003
>
> I started 3 servers  (you can see logs from server logs.png)
>
> PEERS=n0:127.0.0.1:6000,n1:127.0.0.1:6001,n2:127.0.0.1:6002
> ID=n0; ${BIN}/server.sh arithmetic server --id ${ID} --storage
> /tmp/ratis/${ID} --peers ${PEERS}
> ID=n1; ${BIN}/server.sh arithmetic server --id ${ID} --storage
> /tmp/ratis/${ID} --peers ${PEERS}
> ID=n2; ${BIN}/server.sh arithmetic server --id ${ID} --storage
> /tmp/ratis/${ID} --peers ${PEERS}
>
> And 4th server with the following command
>
> PEERS=n0:127.0.0.1:6000,n1:127.0.0.1:6001,n2:127.0.0.1:6002,n3:
> 127.0.0.1:6003
> ID=n3; ${BIN}/server.sh arithmetic server --id ${ID} --storage
> /tmp/ratis/${ID} --peers ${PEERS}
>
> To add server the following commands but nothing worked and not provided
> any information about logging.
>
>   1.  ratis sh peer add -peers 127.0.0.1:6000,127.0.0.1:6001,
> 127.0.0.1:6002,127.0.0.1:6003 -address 127.0.0.1:6000,127.0.0.1:6001,
> 127.0.0.1:6002
>   2.  ratis sh peer add -peers 127.0.0.1:6000,127.0.0.1:6001,
> 127.0.0.1:6002 -address 127.0.0.1:6000,127.0.0.1:6001,127.0.0.1:6002,
> 127.0.0.1:6003
>   3.  ratis sh peer add -peers 127.0.0.1:6003 -address 127.0.0.1:6000,
> 127.0.0.1:6001,127.0.0.1:6002
>
>
>
> Can you please help me in understand am I doing the right way or please
> let me the right procedure to add node to the cluster.
>
> Thanks
> Mahesh Reddy.
>
> From: Tsz Wo Sze <[email protected]>
> Date: Saturday, November 25, 2023 at 1:23 PM
> To: [email protected] <[email protected]>
> Cc: [email protected] <[email protected]>
> Subject: {EXTERNAL} Re: Usage of adding nodes to the cluster - Raft
> Implementation - Arithmetic Example
> Hi Mahesh, From the attached log, it was using a 3. 0. 0 jar but not 2. 5.
> 1. This probably is the reason for the ClassNotFoundException. Found
> /Users/mahesh/IdeaProjects/raft/ratis/ratis-examples/target/ratis-examples-3.
> 0. 0-SNAPSHOT. jar The gz
>
>
> Hi Mahesh,
>
>
>
> From the attached log, it was using a 3.0.0 jar but not 2.5.1.  This
>
> probably is the reason for the ClassNotFoundException.
>
>
>
> Found
> /Users/mahesh/IdeaProjects/raft/ratis/ratis-examples/target/ratis-examples-3.0.0-SNAPSHOT.jar
>
>
>
>
>
> The gz file name is "-bin" but not "-shell", i.e.
>
> apache-ratis-<VERSION>-bin.tar.gz .
>
>
>
> Thanks again for trying Ratis!
>
>
>
> Tsz-Wo
>
> CONFIDENTIALITY NOTICE This e-mail message and any attachments are only
> for the use of the intended recipient and may contain information that is
> privileged, confidential or exempt from disclosure under applicable law. If
> you are not the intended recipient, any disclosure, distribution or other
> use of this e-mail message or attachments is prohibited. If you have
> received this e-mail message in error, please delete and notify the sender
> immediately. Thank you.
>

Reply via email to