* @param remotePath
* @return
* @throws java.io.IOException
*/
public String downloadRemoteShard(String id, String remotePath) throws IOException {
Coordinator coord = spec.getCoordinator();
String returnDir = localTmpDir(id);
if (remotePath == null || !fs.exists(new Path(remotePath))) {
coord.createPersistence(returnDir, spec.getPersistenceOptions());
if(reporter != null)
reporter.progress();
} else {
fs.copyToLocalFile(new Path(remotePath), new Path(returnDir));
if(reporter != null)