public static void main(String[] args) throws RocksDBException {
    RocksDbReadingTool tool = new RocksDbReadingTool();
    OptionSet options = tool.parser().parse(args);
    Config config = tool.loadConfig(options);
    String path = tool.getDbPath();
    String dbName = tool.getDbName();
    RocksDbKeyValueReader kvReader = new RocksDbKeyValueReader(dbName, path, config);

    for (Object obj : tool.getKeys()) {
      Object result = kvReader.get(obj);
      tool.outputResult(obj, result);
    }

    kvReader.stop();
  }
Commandline tool to get the value of a given key from the RocksDb.
samza-kv-rocksdb/src/main/java/org/apache/samza/storage/kv/RocksDbReadingTool.java