[rabbitmq-discuss] Federation with multiple uri's?

k.madnani84 k.madnani84 at gmail.com
Wed Feb 5 19:14:43 GMT 2014


Hi,

I am trying to set parameter for federation upstream with multiple uri's but
cant get what would be the right syntax.The web document says uri's need to
be seperated with space but i tried and got following error:

Command://opt/app/rabbitmq/sbin/rabbitmqctl set_parameter
federation-upstream -p / HA-upstream-CLUSTER4-adminvhost
'{"uri":"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694
amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672
amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672","max-hops":1}'

Error: Validation failed
"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694
amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672
amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672" not a valid URI:
{{unable_to_parse_uri,


Command:
bash-3.2$ //opt/app/rabbitmq/sbin/rabbitmqctl set_parameter
federation-upstream -p / HA-upstream-CLUSTER4-adminvhost
'{"uri":"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694"
"amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672"
"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672","max-hops":1}'
Setting runtime parameter "HA-upstream-CLUSTER4-adminvhost" for component
"federation-upstream" to
"{\"uri\":\"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5694\"
\"amqp://feduser:myFedPassword@zldv0435.XXX.XXX.com:5672\"
\"amqp://feduser:myFedPassword@zldv0434.XXX.XXX.com:5672\",\"max-hops\":1}"
...
Error: JSON decoding error

What is the correct syntax?

                                   



--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/Federation-with-multiple-uri-s-tp33129.html
Sent from the RabbitMQ mailing list archive at Nabble.com.


More information about the rabbitmq-discuss mailing list