To avoid depending on Gradle and project files, especially in production environments, Data Hub provides a client JAR that depends on a Java Virtual Machine (JVM) only.
Before you begin
You need:
Procedure
- Download the Data Hub client JAR (marklogic-data-hub-5.2.1-client.jar) to a local directory.
- Run the JAR with the runFlow command.
java -jar marklogic-data-hub-5.2.1-client.jar runFlow -host localhost -username yourusername -password yourpasswordornothing -flowName YourFlowName -steps 2,3 -PanyDataHubProperty=newPropertyValue
- -host
- (Required) The MarkLogic Server host.
- -username
- (Required) The username for a security account assigned to a role with permissions to run flows, e.g.,
flow-operator-role
. See Users and Roles.
- -password
- (Required) The password for the specified security account. For better security, do not specify a value after the parameter, so that you will be prompted for your password.
- -flowName
- (Required) The name of the flow to run.
- -steps
- Used for partial runs. A comma-separated list of step numbers to run.
- -P<anyDataHubProperty>=<newPropertyValue>
- Overrides any of the Data Hub properties found in gradle.properties. See Gradle Properties. Example:
-PmlStagingPort=8410
Tip: To view the complete list of possible parameters, run the JAR without parameters.
java -jar marklogic-data-hub-5.2.1-client.jar