- 1 year ago
MarkLogic CoRB command
MarkLogic CoRB (Content Replication and Bulk Export) is a command-line tool for bulk processing of MarkLogic content. CoRB allows you to perform complex, large-scale operations on MarkLogic content, such as exporting, transforming, and importing data.
Here is an overview of the basic CoRB command syntax:
phpjava -cp <classpath> com.marklogic.developer.corb.CORB <options>
The <classpath>
argument specifies the path to the CoRB JAR file and any dependent JAR files. The <options>
argument specifies the CoRB options, which can be used to configure the CoRB operation.
Here are some of the most commonly used CoRB options:
XCC-CONNECTION-URI
: The connection URI for the MarkLogic server.XCC-USERNAME
: The username for the MarkLogic server.XCC-PASSWORD
: The password for the MarkLogic server.EXPORT-FILE-NAME
: The name of the export file to be generated.PROCESS-MODULE
: The path to the XQuery module that will process each document in the export.THREAD-COUNT
: The number of threads to use for processing.
For example, here is a sample CoRB command that exports all documents in a MarkLogic database to a file:
arduinojava -cp corb.jar com.marklogic.developer.corb.CORB \
XCC-CONNECTION-URI=xcc://user:password@localhost:8000/ \
EXPORT-FILE-NAME=output.txt \
PROCESS-MODULE=/path/to/process.xqy
This command uses the CoRB JAR file corb.jar
, specifies the MarkLogic connection URI xcc://user:password@localhost:8000/
, exports the data to the file output.txt
, and uses the XQuery module /path/to/process.xqy
to process each document in the export.
Note that you may need to adjust the options to match your specific requirements, and you may need to set additional options depending on the operation you are performing.