I am have started working with Spring Cloud Dataflow on Apache Yarn.
I have created a stream which will send GET request to a REST API and send the response to a kafka broker.
In Yarn application log, I am seeing the below error:
*************************** APPLICATION FAILED TO START
Description:
Binding to target org.springframework.cloud.stream.app.httpclient.processor.HttpclientProcessorProperties@18317edc failed:
Property: httpclient.exactlyOneUrl Value: false Reason: Exactly one of 'url' or 'urlExpression' is required
Action:
Update your application's configuration
Sample Stream:
stream create --definition "trigger --time-unit=SECONDS| httpclient --url='''http://<hostname>:8989/api/galileo?floorid=Shop%20Floor%201''' --http-method=GET > :streamtest1" --name ingest_to_broker --deploy
Questions:
Is this the correct way of getting the response in Kafka topic?
Why am I getting httpclient.exactlyOneUrl error when I have already mentioned the URL?