Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How I get the parameter through the curl command ???

Hello , I want to send parameters to the pipeline the curl command in a terminal environment. I refer to the following site first

https://issues.streamsets.com/browse/SDC-4793

I tried to enter the curl command to get binary data like the one on the site.

[sample command]

curl 'http://localhost:18630/rest/v1/pipeline/ae18bc20-54cd-4036-acf9-3424dda 4d394/start?rev=0' --user admin:admin -H 'X-Requested-By: DataCollector' -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"fields": "x", "fromField": "/x", "toField": "/changedField"}'

And I tried to fetch the corresponding json data from the pipeline by typing:)

ex) keyValue = fields

${pipeline: argv(0)}, ${pipeline: argv(1)}, ${pipeline: argv}, ${pipeline: keyValue}, ${keyValue}, $keyValue, ${attribute: attribute(keyValue)}, keyValue

However, in some cases, the key value could not be obtained. ㅠ . ㅠ I would be very grateful if you let me know how to get that parameter.

Or, let me know about the parameter methodology in the stream set.

How I get the parameter through the curl command ???

Hello , I want to send parameters to the pipeline the curl command in a terminal environment. I refer to the following site first

https://issues.streamsets.com/browse/SDC-4793

I tried to enter the curl command to get binary data like the one on the site.

[sample command]

curl 'http://localhost:18630/rest/v1/pipeline/ae18bc20-54cd-4036-acf9-3424dda 4d394/start?rev=0' --user admin:admin -H 'X-Requested-By: DataCollector' -H 'Content-Type: application/json;charset=UTF-8' --data-binary '{"fields": "x", "fromField": "/x", "toField": "/changedField"}'

And I tried to fetch the corresponding json data from the pipeline by typing:)

ex) keyValue = fields

${pipeline: argv(0)}, ${pipeline: argv(1)}, ${pipeline: argv}, ${pipeline: keyValue}, ${keyValue}, $keyValue, ${attribute: attribute(keyValue)}, keyValue

However, in some cases, the key value could not be obtained. ㅠ . ㅠ I would be very grateful if you let me know how to get that parameter.

Or, let me know about the parameter methodology in the stream set.