forked from D-Net/dnet-hadoop
This commit is contained in:
parent
7ddd8590d0
commit
b1dad7959c
|
@ -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();
|
||||
|
|
|
@ -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>--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>-->
|
||||
<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"/>
|
||||
|
||||
|
|
Loading…
Reference in New Issue