I have made a Query on MarkLogic that look up /customer.xml datasets and exports them on a local CSV file. but the CoRB command doesnot seem to work and throws a error.
The CoRB command I executed below
java -cp ".\documents\marklogic-corb-2.3.2.jar;.\documents\marklogic-xcc-11.0.0.jar" \
> -DMODULE-DATABASE="Module" ^
> -DMODULE-ROOT="/" ^
> -DXCC-CONNECTION-URI="xcc://admin:admin@localhost:9100/" ^
> -DPROCESS-MODULE="/processQuery.xqy" ^
> -DURIS-MODULE="/uriQuery.xqy" ^
> -DTHREAD-COUNT=4 ^
> -DINSTALL="false" ^
> -DPROCESS-TASK="com.marklogic.developer.corb.ExportBatchtoFileTask" ^
> -DEXPORT-FILE-NAME="C:\work\test.csv" ^
com.marklogic.developer.corb.Manager
The error I got
Error initializing CORB For input string: "-DPROCESS-MODULE=/processQuery.xqy"
CoRB2 requires options to be specified through one or more of the following mechanisms:
1.) command-line parameters
2.) Java system properties ex: -DXCC-CONNECTION-URI=xcc://user:password@localhost:8202
3.) As properties file in the class path specified using -DOPTIONS-FILE=myjob.properties. Relative and full file system paths are also supported.
If specified in more than one place, a command line parameter takes precedence over a Java system property, which take precedence over a property from the OPTIONS-FILE properties file.