[DumpOpenorgs] fixed issues in path
This commit is contained in:
parent
af87da12f9
commit
7492927559
|
@ -93,7 +93,7 @@ public class SparkDumpOrganizationJob implements Serializable {
|
|||
|
||||
private static void organizationMap(SparkSession spark, String inputPath, String outputPath) {
|
||||
Utils
|
||||
.readPath(spark, inputPath + "/organization", eu.dnetlib.dhp.schema.oaf.Organization.class)
|
||||
.readPath(spark, inputPath , eu.dnetlib.dhp.schema.oaf.Organization.class)
|
||||
.filter(
|
||||
(FilterFunction<eu.dnetlib.dhp.schema.oaf.Organization>) o -> !o.getDataInfo().getDeletedbyinference()
|
||||
&& o.getId().startsWith("20|openorgs"))
|
||||
|
@ -104,7 +104,7 @@ public class SparkDumpOrganizationJob implements Serializable {
|
|||
.write()
|
||||
.mode(SaveMode.Overwrite)
|
||||
.option(COMPRESSION, GZIP)
|
||||
.json(outputPath + "/openorgs");
|
||||
.json(outputPath );
|
||||
}
|
||||
|
||||
private static eu.dnetlib.dhp.oa.model.graph.Organization mapOrganization(
|
||||
|
|
Loading…
Reference in New Issue