This commit is contained in:
Miriam Baglioni 2020-07-08 10:38:52 +02:00
parent 7ddd8590d0
commit b1dad7959c
2 changed files with 12 additions and 12 deletions

View File

@ -63,7 +63,7 @@ public class SendToCatalogue implements Serializable {
String line;
while ((line = reader.readLine()) != null) {
if (HttpStatus.SC_CREATED != gCatAPIClient.publish(line)) {
log.error("entry non created for item " + line);
log.error("entry not created for item " + line);
}
}
reader.close();

View File

@ -207,18 +207,18 @@
<error to="Kill"/>
</action>
<join name="join_dump" to="End"/>
<join name="join_dump" to="populate_catalogue"/>
<!-- <action name="populate_catalogue">-->
<!-- <java>-->
<!-- <main-class>eu.dnetlib.dhp.oa.graph.dump.gcat.SendToCatalogue</main-class>-->
<!-- <arg>&#45;&#45;hdfsPath</arg><arg>${workingDir}/blacklist</arg>-->
<!-- <arg>&#45;&#45;hdfsNameNode</arg><arg>${nameNode}</arg>-->
<!-- <arg>&#45;&#45;accessToken</arg><arg>${accessToken}</arg>-->
<!-- </java>-->
<!-- <ok to="End"/>-->
<!-- <error to="Kill"/>-->
<!-- </action>-->
<action name="populate_catalogue">
<java>
<main-class>eu.dnetlib.dhp.oa.graph.dump.gcat.SendToCatalogue</main-class>
<arg>--hdfsPath</arg><arg>${workingDir}/blacklist</arg>
<arg>--hdfsNameNode</arg><arg>${nameNode}</arg>
<arg>--accessToken</arg><arg>${accessToken}</arg>
</java>
<ok to="End"/>
<error to="Kill"/>
</action>
<end name="End"/>