特定の時間間隔に基づいてタスクを起動するストリームがあります。Rabbit バインダーを使用したいのですが、rabbitmq ブローカー プロパティを提供する構文がありません。誰かが私を助けてくれませんか。
Here is the steps and configuration I have.
1. Imported apps using: app import --uri
http//bitly/stream-applications-rabbit-maven
2. Registered a task: app register --name task-sink --type sink --uri file://tasksink.jar
3. Created stream: stream create foo --definition "triggertask --triggertask.uri=file://task-file.jar --trigger.cron-expression=10 | task-sink"
4. stream deploy foo --properties "spring.rabbitmq.host=myhost, spring.rabbitmq.username=user,spring.rabbitmq.password=pass, spring.rabbitmq.port=5672,spring.rabbitmq.virtual-host=XXX"
When both stream and runtime apps are deployed but I see error on logs saying connection could not be established.
I changed the properties syntax to "spring.cloud.stream.bindings.rabbitmq.host" also but same error.
I am not sure I am not using correct syntax here but below are some different behaviour when i run it on VPN and without VPN.
**Note**:
Case 1: Both my machines (where SCDF is running and RabbitMQ broker) are in core network (VPN). Even if I run SCDF and RabbitMq on my local machine It does not work and says unable to resolve host.
Case 2: But when I run RabbitMQ and SCDF on my local machine (Not connected to VPN) then it works fine with "spring.rabbitmq.username=user" properties syntax.
Is there any setting which I need to change to connect to different host system?
Thanks in advance for help and suggestion.