A set of utilities to help with management of Streamsets pipelines.
Create a YAML file called sdc-hosts.yml
in the root of the project and fill in with details of the
instances you plan to use with these utilities. See the template-sdc-hosts.yml
for an example of
the required formatting.
Create a YAML file called creds.yml
in the root of the project and fill in with credentials of the
instances you plan to use with these utilities. See the template-creds.yml
for an example of
the required formatting.
The script includes help docs with details on the script arguments, but here is an example of calling it from the shell:
Migrate one pipeline from one SDC environment to another. SDC administrator
credentials are required to execute these commands. If a destPipelineId
is not
specified, a new pipeline will be created with the same name and description as the exported pipeline.
Currently, origin offset values are not part of the exported configuration, so no manipulation of the
destination's offset is required.
sdc-tool pipeline promote --src dev \
--srcPipelineId ESImport77337a4f-74c5-45d1-91fd-7ce746f1bdfd \
--dest stage \
--destPipelineId ESImport48b1200f-c270-4937-a226-b3443ce850f3`
Export pipeline to --out
path.
sdc-tool pipeline export --src dev \
--out sdc.json \
--pipelineId StreamManagerConsumerV06fa7c3d3-458f-4446-9f51-398899118b73
Import pipeline from --pipelineJson
path.
sdc-tool pipeline import --dest production \
--pipelineJson testpipeline.json \
--pipelineId firstpipe
sdc-tool pipeline start \
--pipelineId firstpipe \
--host production
sdc-tool pipeline stop \
--pipelineId firstpipe \
--host production
Validate pipleine and return issues.
sdc-tool pipeline validate \
--pipelineId firstpipe \
--host production
This project depends on Python and Docker Compose Installing required libraries
pip install -r requirements.txt