public static void main(String[] args) throws Exception {
    VerifiableProperties verifiableProperties = ToolUtils.getVerifiableProperties(args);
    DumpCompactionLogConfig config = new DumpCompactionLogConfig(verifiableProperties);
    ClusterMapConfig clusterMapConfig = new ClusterMapConfig(verifiableProperties);
    try (ClusterMap clusterMap = ((ClusterAgentsFactory) Utils.getObj(clusterMapConfig.clusterMapClusterAgentsFactory,
        clusterMapConfig, config.hardwareLayoutFilePath, config.partitionLayoutFilePath)).getClusterMap()) {
      File file = new File(config.compactionLogFilePath);
      BlobIdFactory blobIdFactory = new BlobIdFactory(clusterMap);
      StoreConfig storeConfig = new StoreConfig(verifiableProperties);
      Time time = SystemTime.getInstance();
      CompactionLog compactionLog = new CompactionLog(file, blobIdFactory, time, storeConfig);
      System.out.println(compactionLog.toString());
    }
  }
The tool to print out the compaction log details from a given compaction log file.
ambry-tools/src/main/java/com/github/ambry/store/DumpCompactionLogTool.java