-
Notifications
You must be signed in to change notification settings - Fork 80
Closed
Description
Please update the Content Pump and Gradle wiki for the current version of MLCP.
The current wiki has instructions for setting up a task to use MLCP. The instructions refer to an old version of MLCP and it's not working for me. As written, I get this error:
> Task :importTriples FAILED
mlcp arguments, excluding password: [IMPORT, -input_file_path, content, -input_file_type, RDF, -host, localhost, -port, 8000, -username, admin]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':importTriples'.
> Could not resolve all files for configuration ':mlcp'.
> Could not find com.marklogic:mlcp-Hadoop2:1.3-2.
Searched in the following locations:
https://repo.maven.apache.org/maven2/com/marklogic/mlcp-Hadoop2/1.3-2/mlcp-Hadoop2-1.3-2.pom
https://repo.maven.apache.org/maven2/com/marklogic/mlcp-Hadoop2/1.3-2/mlcp-Hadoop2-1.3-2.jar
Required by:
project :
> Could not find com.marklogic:marklogic-mapreduce2:2.1.2.
Searched in the following locations:
https://repo.maven.apache.org/maven2/com/marklogic/marklogic-mapreduce2/2.1.2/marklogic-mapreduce2-2.1.2.pom
https://repo.maven.apache.org/maven2/com/marklogic/marklogic-mapreduce2/2.1.2/marklogic-mapreduce2-2.1.2.jar
Required by:
project :
I tried updating the MLCP reference, as shown:
plugins {
id "net.saliman.properties" version "1.4.6"
id "com.marklogic.ml-gradle" version "3.5.0"
}
repositories {
mavenCentral()
}
configurations {
mlcp
}
dependencies {
mlcp "com.marklogic:mlcp:9.0.4"
}
task importTriples(type: com.marklogic.gradle.task.MlcpTask) {
classpath = configurations.mlcp
command = "IMPORT"
input_file_path = "content"
input_file_type = "RDF"
// Can also override the default properties
// username = "some-other-username"
}
That led to a different problem:
> Task :importTriples FAILED
mlcp arguments, excluding password: [IMPORT, -input_file_path, content, -input_file_type, RDF, -host, localhost, -port, 8000, -username, admin]
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':importTriples'.
> Could not resolve all files for configuration ':mlcp'.
> Could not find org.apache.commons:commons-csv:1.5.1-marklogic.
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/apache/commons/commons-csv/1.5.1-marklogic/commons-csv-1.5.1-marklogic.pom
https://repo.maven.apache.org/maven2/org/apache/commons/commons-csv/1.5.1-marklogic/commons-csv-1.5.1-marklogic.jar
Required by:
project : > com.marklogic:mlcp:9.0.4
I looked up the gradle reference for apache-commons-csv, which is
compile 'org.apache.commons:commons-csv:1.5.1-SNAPSHOT'
but I haven't been successful in figuring out where to put it.