forked from D-Net/dnet-hadoop
Merge branch 'beta' of https://code-repo.d4science.org/D-Net/dnet-hadoop into beta
This commit is contained in:
commit
5226d0a100
|
@ -49,7 +49,7 @@ abstract class AbstractRestClient extends Iterator[String] {
|
||||||
}
|
}
|
||||||
|
|
||||||
private def doHTTPRequest[A <: HttpUriRequest](r: A): String = {
|
private def doHTTPRequest[A <: HttpUriRequest](r: A): String = {
|
||||||
val timeout = 60; // seconds
|
val timeout = 600; // seconds
|
||||||
val config = RequestConfig
|
val config = RequestConfig
|
||||||
.custom()
|
.custom()
|
||||||
.setConnectTimeout(timeout * 1000)
|
.setConnectTimeout(timeout * 1000)
|
||||||
|
|
|
@ -46,7 +46,7 @@ object ImportDatacite {
|
||||||
Source
|
Source
|
||||||
.fromInputStream(
|
.fromInputStream(
|
||||||
getClass.getResourceAsStream(
|
getClass.getResourceAsStream(
|
||||||
"/eu/dnetlib/dhp/actionmanager/datacite/import_from_api.json"
|
"/eu/dnetlib/dhp/datacite/import_from_api.json"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
.mkString
|
.mkString
|
||||||
|
|
Loading…
Reference in New Issue