@Override
  public int run() throws IOException {
    InputFile inputFile = HadoopInputFile.fromPath(qualifiedPath(target), getConf());

    console.info(raw ? readRawFooter(inputFile) : readFooter(inputFile));

    return 0;
  }
@Test
  public void testShowDirectoryCommand() throws IOException {
    File file = parquetFile();
    ShowFooterCommand command = new ShowFooterCommand(createLogger());
    command.target = file.getAbsolutePath();
    command.raw = false;
    command.setConf(new Configuration());
    assertEquals(0, command.run());

    command.raw = true;
    assertEquals(0, command.run());
  }