Hello Tez,

Thanks for the helping me out but I am not able to follow both the approaches.


  1.  In the athematic example, I created one more class called “append” & add 
it athematic class code was attached and ran the append command. Got 
ClassNotFound Exception (Attached full logs file)



  1.  I am trying to setup ratis-shell, for that I downloaded latest source 
2.5.1 and run the following commands as for cli.md file from ratis-docs package
     *   $ tar -C out -zxvf apache-ratis-<VERSION>-src.tar.gz
     *   $ cd out/apache-ratis-<VERSION>-src
     *   $ mvn -DskipTests -Prelease -Papache-release clean package 
assembly:single

But when Exract the ratis-shell tarball “tar -C <DST_DIR>/ratis-shell -xzf 
ratis-assembly/target/apache-ratis-<VERSION>-shell.tar.gz --strip-component 1”, 
 apache-ratis-<VERSION>-shell.tar.gz file was not found in the directory.


Please help me in resolving this issue or provide better examples.

Thanks
Mahesh Reddy.
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.
 ${BIN}/client.sh arithmetic append --peers ${PEERS}

Found 
/Users/mahesh/IdeaProjects/raft/ratis/ratis-examples/target/ratis-examples-3.0.0-SNAPSHOT.jar
2023-11-24 12:07:55 INFO  MetricRegistries:64 - Loaded MetricRegistries class 
org.apache.ratis.metrics.impl.MetricRegistriesImpl
Exception in thread "main" java.lang.NoSuchMethodError: 
'org.apache.ratis.thirdparty.com.google.protobuf.Internal$ProtobufList 
org.apache.ratis.proto.RaftProtos$RaftRpcRequestProto.makeMutableCopy(org.apache.ratis.thirdparty.com.google.protobuf.Internal$ProtobufList)'
        at 
org.apache.ratis.proto.RaftProtos$RaftRpcRequestProto.access$12000(RaftProtos.java:10975)
        at 
org.apache.ratis.proto.RaftProtos$RaftRpcRequestProto$Builder.ensureRepliedCallIdsIsMutable(RaftProtos.java:12039)
        at 
org.apache.ratis.proto.RaftProtos$RaftRpcRequestProto$Builder.addAllRepliedCallIds(RaftProtos.java:12126)
        at 
org.apache.ratis.client.impl.ClientProtoUtils.toRaftRpcRequestProtoBuilder(ClientProtoUtils.java:134)
        at 
org.apache.ratis.client.impl.ClientProtoUtils.toSetConfigurationRequestProto(ClientProtoUtils.java:559)
        at 
org.apache.ratis.grpc.client.GrpcClientRpc.sendRequest(GrpcClientRpc.java:100)
        at 
org.apache.ratis.client.impl.BlockingImpl.sendRequest(BlockingImpl.java:145)
        at 
org.apache.ratis.client.impl.BlockingImpl.sendRequestWithRetry(BlockingImpl.java:109)
        at 
org.apache.ratis.client.impl.AdminImpl.setConfiguration(AdminImpl.java:46)
        at 
org.apache.ratis.examples.arithmetic.cli.Append.operation(Append.java:26)
        at org.apache.ratis.examples.arithmetic.cli.Client.run(Client.java:34)
        at org.apache.ratis.examples.common.Runner.main(Runner.java:62)

Reply via email to