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;
|
String line;
|
||||||
while ((line = reader.readLine()) != null) {
|
while ((line = reader.readLine()) != null) {
|
||||||
if (HttpStatus.SC_CREATED != gCatAPIClient.publish(line)) {
|
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();
|
reader.close();
|
||||||
|
|
|
@ -207,18 +207,18 @@
|
||||||
<error to="Kill"/>
|
<error to="Kill"/>
|
||||||
</action>
|
</action>
|
||||||
|
|
||||||
<join name="join_dump" to="End"/>
|
<join name="join_dump" to="populate_catalogue"/>
|
||||||
|
|
||||||
<!-- <action name="populate_catalogue">-->
|
<action name="populate_catalogue">
|
||||||
<!-- <java>-->
|
<java>
|
||||||
<!-- <main-class>eu.dnetlib.dhp.oa.graph.dump.gcat.SendToCatalogue</main-class>-->
|
<main-class>eu.dnetlib.dhp.oa.graph.dump.gcat.SendToCatalogue</main-class>
|
||||||
<!-- <arg>--hdfsPath</arg><arg>${workingDir}/blacklist</arg>-->
|
<arg>--hdfsPath</arg><arg>${workingDir}/blacklist</arg>
|
||||||
<!-- <arg>--hdfsNameNode</arg><arg>${nameNode}</arg>-->
|
<arg>--hdfsNameNode</arg><arg>${nameNode}</arg>
|
||||||
<!-- <arg>--accessToken</arg><arg>${accessToken}</arg>-->
|
<arg>--accessToken</arg><arg>${accessToken}</arg>
|
||||||
<!-- </java>-->
|
</java>
|
||||||
<!-- <ok to="End"/>-->
|
<ok to="End"/>
|
||||||
<!-- <error to="Kill"/>-->
|
<error to="Kill"/>
|
||||||
<!-- </action>-->
|
</action>
|
||||||
|
|
||||||
<end name="End"/>
|
<end name="End"/>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue