Hello, We are interested in reading snapshot files from an HDFS directory and we want to know if this was already provided and if not, is it even possible? Within the HDFSTransactionStateStorage.java file , the main method looks as if it supports a CLI tool that reads a transaction state snapshot or transaction log from HDFS. I have left out extraneous code but the for loop below iterates through a list of files (each file pointing to a transaction state snapshot or transaction log) and prints each snapshot to stdout.
1) Is this CLI tool existent, or on the roadmap to be developed? 2) Is it safe to call this main method to read snapshots from an HDFS directory? // TODO move this out as a separate command line tool private enum CLIMode { SNAPSHOT, TXLOG }; /** * Reads a transaction state snapshot or transaction log from HDFS and prints the entries to stdout. * * Supports the following options: * -s read snapshot state (defaults to the latest) * -l read a transaction log * [filename] reads the given file * @param args */ public static void main(String[] args) { *//......... * for (String file : filenames) { Path path = new Path(file); TransactionSnapshot snapshot = storage.readSnapshotFile(path); printSnapshot(snapshot); } } Thanks very much