tree: 4e4b70a076834033eb12b15ee386048f05b31895 [path history] [tgz]
  1. options/
  2. transforms/
  3. utils/
  4. CdapServiceNowToTxt.java
  5. package-info.java
  6. README.md
examples/java/cdap/servicenow/src/main/java/org/apache/beam/examples/complete/cdap/servicenow/README.md

Gradle preparation

To run this example your build.gradle file should contain the following task to execute the pipeline:

task executeCdapServiceNow (type:JavaExec) {
    mainClass = System.getProperty("mainClass")
    classpath = sourceSets.main.runtimeClasspath
    systemProperties System.getProperties()
    args System.getProperty("exec.args", "").split()
}

Running the CdapServiceNowToTxt pipeline example

Gradle ‘executeCdapServiceNow’ task allows to run the pipeline via the following command:

gradle clean executeCdapServiceNow -DmainClass=org.apache.beam.examples.complete.cdap.servicenow.CdapServiceNowToTxt \
     -Dexec.args="--<argument>=<value> --<argument>=<value>"

To execute this pipeline, specify the parameters in the following format:

 --clientId=your-client-id \
 --clientSecret=your-client-secret \
 --user=your-user \
 --password=your-password \
 --restApiEndpoint=your-endpoint \
 --queryMode=Table \
 --tableName=your-table \
 --valueType=Actual \
 --referenceName=your-reference-name \
 --outputTxtFilePathPrefix=your-path-to-output-folder-with-filename-prefix

Please see CDAP ServiceNow Batch Source for more information.