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

Gradle preparation

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

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

Running the CdapZendeskToTxt pipeline example

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

gradle clean executeCdapZendesk -DmainClass=org.apache.beam.examples.complete.cdap.zendesk.CdapZendeskToTxt \
     -Dexec.args="--<argument>=<value> --<argument>=<value>"

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

 --zendeskBaseUrl=zendesk-url-key-followed-by-/%s/%s (example: https://support.zendesk.com/%s/%s) \
 --adminEmail=your-admin-admin-email \
 --apiToken=your-api-token \
 --subdomains=your-subdomains (example: api/v2) \
 --maxRetryCount=your-max-retry-count \
 --maxRetryWait=your-max-retry-wait \
 --maxRetryJitterWait=your-max-retry-jitter-wait \
 --connectTimeout=your-connection-timeout \
 --readTimeout=your-read-timeout \
 --objectsToPull=your-objects-to-pull (example: Groups) \
 --outputTxtFilePathPrefix=your-path-to-output-folder-with-filename-prefix

Please see CDAP Zendesk Batch Source for more information.