code: public YarnSubmissionHelper addLocalResource(final String resourceName, final LocalResource resource) {
      resources.put(resourceName, resource);
      return this;
    }
docs: Add a file to be localized on the driver.
  @param resourceName
  @param resource
  @return