This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Example Scripting Origin to call a REST API with pagination and offset handling | |
# Imports | |
try: | |
sdc.importLock() | |
import sys | |
## Set this path to where we can load the Requests module | |
sys.path.append('/usr/local/lib/python3.9/site-packages') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipelineConfig": { | |
"schemaVersion" : 6, | |
"version" : 23, | |
"pipelineId" : "OracleCDCtoBigQuerywithSoftDeletes97c001d2-9e55-4aae-9cbe-fb047069f73c", | |
"uuid" : "28b9babb-44b6-4952-8a4d-692d45f31dfa", | |
"title" : "Oracle CDC to BigQuery with Soft Deletes", | |
"description" : "", | |
"configuration" : [ { | |
"name" : "executionMode", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipelineConfig": { | |
"schemaVersion" : 6, | |
"version" : 23, | |
"pipelineId" : "ScriptingOriginRESTAPIwithPaginationandOffsetHandling9d21bcdc-ba2b-4c9a-b3c9-29f099d6a5cb", | |
"uuid" : "f808cb09-dbe5-4350-a81b-e88504dc513a", | |
"title" : "Scripting Origin REST API with Pagination and Offset Handling", | |
"description" : "", | |
"configuration" : [ { | |
"name" : "executionMode", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.salesforce.ps</groupId> | |
<artifactId>quickstart-java</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>quickstart-java</name> | |
<properties> | |
<dependencyCheck.skip>true</dependencyCheck.skip> | |
<dependencyCheck.failBuildOnCVSS>9</dependencyCheck.failBuildOnCVSS> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: 1 | |
kind: List | |
items: | |
- apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sdc | |
namespace: ns1 | |
labels: | |
app: sdc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import time | |
# Conver the pipeline parameter JOB_STATUS_CHANGE_SUPPRESS_DUPES_MINUTES from minutes to seconds | |
SUPPRESS_DUPE_NOTIFICATIONS_SECONDS = ${JOB_STATUS_CHANGE_SUPPRESS_DUPES_MINUTES} * 60 | |
for record in sdc.records: | |
try: | |
# Assume we will forward this notification to the endpoint targets |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sdc | |
labels: | |
app : sdc | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: policy/v1beta1 | |
kind: PodSecurityPolicy | |
metadata: | |
name: privileged | |
annotations: | |
seccomp.security.alpha.kubernetes.io/allowedProfileNames: "*" | |
labels: | |
addonmanager.kubernetes.io/mode: EnsureExists | |
spec: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
## restart-streamsets-oracle-cdc-job.sh | |
## A bash script that stops a StreamSets Job for an Oracle CDC pipeline, waits for the Job | |
## to transition to an INACTIVE state and then starts the Job with the Runtime Parameter | |
## ORACLE_CDC_DICTIONARY_SOURCE set to either "DICT_FROM_ONLINE_CATALOG" or "DICT_FROM_REDO_LOGS" | |
## | |
## If the Job is currently in an INACTIVE state, the Job is started immediately | |
## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pipelineConfig": { | |
"schemaVersion" : 6, | |
"version" : 22, | |
"pipelineId" : "JythonOri974259df-0475-4bd1-809a-0d70115aaa0b", | |
"uuid" : "7223c35c-e891-4af1-b205-fffffe7ea275", | |
"title" : "Jython Origin REST API Call with Pagination", | |
"description" : "", | |
"configuration" : [ { | |
"name" : "executionMode", |