code: public static LocalResource createLocalResource(FileSystem fs, Path provisionedResourcePath){
  		try {
  			FileStatus scFileStatus = fs.getFileStatus(provisionedResourcePath);
  			LocalResource localResource = LocalResource.newInstance(
  					ConverterUtils.getYarnUrlFromURI(provisionedResourcePath.toUri()),
  					LocalResourceType.FILE,
  					LocalResourceVisibility.APPLICATION, scFileStatus.getLen(),
  					scFileStatus.getModificationTime());
  			return localResource;
  		}
  		catch (Exception e) {
  			throw new IllegalStateException("Failed to communicate with FileSystem while creating LocalResource: " + fs, e);
  		}
  	}
docs: Creates a single {@link LocalResource} for the provisioned resource identified with {@link Path}
  
  @param fs
  @param provisionedResourcePath
  @return