Currently, srcFile is not respected. ProviderUtils doesn't properly read srcFile, instead it always construct remoteFile by using componentDir and fileName of destFile:
To me it is a common use case which services have some files existed in HDFS and need to be localized when components get launched. (For example, if we want to serve a Tensorflow model, we need to localize Tensorflow model (typically not huge, less than GB) to local disk. Otherwise launched docker container has to access HDFS.