Discussion:
[rabbitmq-users] Shovel error
sumana shetty
2015-07-30 11:45:14 UTC
Permalink
Hello,

I am trying to configure shovel using rabbitmqctl command as below

rabbitmqctl set_parameter -p myvhost testShovel
'{"src-uri:amqp://username:***@host:port/myvhost", "src-queue":"myqueue",
"dest-uri": "amqp://destination
username:***@desthost:destport/destVHOST","queue":"dest queue"}'

Getting error

Error: {'EXIT',
{function_clause,
[{rabbit_control_main,action,
[set_parameter,mynodename,
["testShovel",

"{\"src-uri:amqp://amqp://username:***@host:port/myvhost\",
\"src-queue\":\"myqueue\", \"dest-uri\": \"amqp://destination
username:***@destHost:destPort/destVHOST\",\"dest-queue\":\"dest
queue\"}"],
[{"-p","myVHOST"},
{"-q",false},
{"-n",myNodeName}],
#Fun<rabbit_control_main.9.121822165>],
[]},
{rabbit_cli,main,3,[]},
{init,start_it,1,[]},
{init,start_em,1,[]}]}}

Am using RMQ version 3.5.3 and erlang 17.5
any suggestions?

Thanks
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-07-30 11:48:54 UTC
Permalink
I suspect this is meant to be "src-uri": "amqp://username:***@host:port/myvhost"
and not a single string.
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
sumana shetty
2015-07-30 12:26:32 UTC
Permalink
Thanks,you are correct.Its fine now.
One more doubt ,can i give source as queue,destination as exchange.Is it
works?
Post by Michael Klishin
and not a single string.
--
MK
Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-07-30 12:28:37 UTC
Permalink
Post by sumana shetty
One more doubt ,can i give source as queue,destination as exchange.Is
it works?
Take a look at the Destination reference in http://www.rabbitmq.com/shovel-dynamic.html. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...