java - Why does DistributedCache mangle my file names -
I have a strange problem, the distributed catches appear to change the names of my files; Uses as a folder and adds the file as a child
ie. Folder \ filename.ext goes into the folder \ filename.ext \ filename.ext
Any idea, my code is down thanks to the Accto
string parameters location = "/ User / fwang / settings / ecgparams.txt "; Distributed. AdKach file (new URI (parameter location), First Stage Config); Path [] path = distributed Cache.getLocalCacheFiles (job); (Path path: path) {if (path.getName (.) Equals (ecgParamsFilename)} {file f = new file (path.toString ()); If (f.exists ()) {ecgParamsFullFileName = f.getAbsolutePath (); // It updates /user/fwang/settings/ecgparams.txt/ecgparams.txt}}}
Updated: August 16, 2010 with the following, prevents mangling in place of the original call Is the name
Deliver. AddcacheArchive (new ecUParamsLocation, first StageConf);
Are you sure you want to delete addCacheArchive ()
Want to use? There is also addCacheFile ()
.
Comments
Post a Comment