Manage Pipelines on SDC Edge
After designing edge pipelines in Data Collector and then deploying the edge pipelines to SDC Edge, you can manage the pipelines on SDC Edge. Managing edge pipelines includes previewing, validating, starting, stopping, and monitoring the pipelines as well as resetting the origin for the pipelines.
You can use the following methods to manage edge pipelines on SDC Edge:
- Use the Data Collector UI.
Use this method when SDC Edge is accessible by the Data Collector machine.
- Send commands to SDC Edge.
Use this method when SDC Edge is not accessible by the Data Collector machine.
Using the Data Collector UI
When SDC Edge is accessible by the Data Collector machine and when the deployed edge pipeline has the Data Collector Edge URL property correctly configured, you can use the Data Collector UI to manage edge pipelines.
- Open the edge pipeline in the pipeline canvas.
-
On the General tab, set the Data Collector
Edge URL property to the URL of the SDC Edge instance that you want to manage the pipeline on.
The default URL is
http://localhost:18633
. -
Use the Data Collector top toolbar to preview, validate, start, stop, and reset the origin for the
edge pipeline running on SDC Edge - just as you manage standalone or cluster pipelines running on Data Collector.
As an edge pipeline runs, the Data Collector UI displays the pipeline in Monitor mode so that you can monitor the edge pipeline status and metrics.
Sending Commands to SDC Edge
When SDC Edge is not accessible by the Data Collector machine, you must use the command line and REST API to manage edge pipelines on Data Collector Edge (SDC Edge).
Managing edge pipelines includes previewing, validating, starting, stopping, resetting the offset, and viewing the pipeline status and metrics.
Commands to Start a Pipeline at Startup
You can start an edge pipeline at the same time that you manually start SDC Edge.
On the edge device, run the following command from the SDC Edge home directory:
bin/edge -start=<pipelineID>
bin/edge -start=FileTailToHTTP74f418f8-c7d3-4d0c-8788-b6474f7160e0
bin/edge -start=<pipelineID> -runtimeParameters='{"<parameter_name1>":"<parameter_value1>",
"<parameter_name2":"<parameter_value2>"}'
bin/edge -start=FileTailToHTTP74f418f8-c7d3-4d0c-8788-b6474f7160e0 -runtimeParameters='{"filePath":"/tmp/sds.log"}'
Commands to Manage Pipelines After Start Up
curl -X POST http://<SDCEdge_hostname>:<port>/rest/v1/pipeline/<pipelineID>/start
curl -X POST http://localhost:18633/rest/v1/pipeline/fileTailControl74f418f8-cl2f5-4r7k-8790-b9854h1450e8/start
curl -X POST http://<SDCEdge_hostname>:<port>/rest/v1/pipeline/<pipelineID>/start -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"<parameter_name1>":"<parameter_value1>","<parameter_name2":"<parameter_value2>"}'
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipelines
curl -X POST http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/preview
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/preview/<previewerID>/status
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/preview/<previewerID>
curl -X DELETE http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/preview/<previewerID>
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/validate
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/status
curl -X POST http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/stop
curl -X POST http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/resetOffset
curl -X GET http://<SDCEdge_hostname>:18633/rest/v1/pipeline/<pipelineID>/metrics