dump #50

Merged
claudio.atzori merged 98 commits from miriam.baglioni/dnet-hadoop:dump into master 2020-11-04 18:07:01 +01:00
1 changed files with 4 additions and 1 deletions
Showing only changes of commit cfb5766c6b - Show all commits

View File

@ -88,7 +88,10 @@ public class MakeTar implements Serializable {
String p_string = p.toString();
if (!p_string.endsWith("_SUCCESS")) {
String name = p_string.substring(p_string.lastIndexOf("/") + 1);
TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name + ".json.gz");
if(! name.trim().equalsIgnoreCase("context")){
name = "communities_infrastructures.json";
}
TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name );
entry.setSize(fileStatus.getLen());
ar.putArchiveEntry(entry);