forked from D-Net/dnet-hadoop
changed to solve issues about names. context renamed communities_infrastructure.json and removed the double json.gz extention to the name of the part in the tar
This commit is contained in:
parent
01117a46e1
commit
25cbcf6114
|
@ -88,10 +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);
|
||||
if(! name.trim().equalsIgnoreCase("context")){
|
||||
if (name.trim().equalsIgnoreCase("context")) {
|
||||
name = "communities_infrastructures.json";
|
||||
}
|
||||
TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name );
|
||||
TarArchiveEntry entry = new TarArchiveEntry(dir_name + "/" + name);
|
||||
entry.setSize(fileStatus.getLen());
|
||||
ar.putArchiveEntry(entry);
|
||||
|
||||
|
|
Loading…
Reference in New Issue