public static void main(String args[]) throws Exception {
    VerifiableProperties verifiableProperties = ToolUtils.getVerifiableProperties(args);
    DumpReplicaTokenTool dumpReplicaTokenTool = new DumpReplicaTokenTool(verifiableProperties);
    dumpReplicaTokenTool.dumpReplicaToken();
  }
Tool to assist in dumping data from replica token file in ambry

1. Put this in a file called ambry/target/dump_replica.props and change the first three to your filesystem paths.

   file.to.read=/Users/snalli/projects/ambry/target/replicaTokens
   hardware.layout.file.path=/Users/snalli/projects/ambry/target/HardwareLayoutVideo.json
   partition.layout.file.path=/Users/snalli/projects/ambry/target/PartitionLayoutVideo.json
   clustermap.resolve.hostnames=false
   hostname=localhost
   clustermap.cluster.name=ambry
   clustermap.datacenter.name=prod-lva1
   port=15088
   clustermap.host.name=localhost
   replication.token.factory=com.github.ambry.store.StoreFindTokenFactory
   store.key.factory=com.github.ambry.commons.BlobIdFactory

2. Compile ambry open-source.

   ./gradlew clean && ./gradlew allJar

3. Switch to target/ folder

4. Run this cmd

   java -cp ambry.jar -Dlog4j2.configurationFile=file:../config/log4j2.xml com.github.ambry.store.DumpReplicaTokenTool --propsFile ./dump_replica.props
ambry-tools/src/main/java/com/github/ambry/store/DumpReplicaTokenTool.java