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() }
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.