code: AvroYarnJobSubmissionParameters fromFile(final File file) throws IOException {
      try (final FileInputStream fileInputStream = new FileInputStream(file)) {
        // This is mainly a test hook.
        return fromInputStream(fileInputStream);
      }
    }
docs: Reads avro object from file.
  
  @param file The file to read from
  @return Avro object
  @throws IOException