As the error suggests it needs to be an utterable, you can add it by using the 
following line, the second arg must be a collection. 
config.put(Config.SUPERVISOR_SLOTS_PORTS, Lists.newArrayList(7000));

On Dec 4, 2014, at 8:58 AM, Kushan Maskey <[email protected]> 
wrote:

> Is there a way I can set supervisor_slots_port in the config in the topology 
> class? I tried to set it up like below 
> 
> config.put(Config.SUPERVISOR_SLOTS_PORTS, 7000);
> 
> but I get error as below.
> InvalidTopologyException(msg:Field supervisor.slots.ports must be an Iterable 
> of java.lang.Number
> 
> Thanks.
> 
> --
> Kushan Maskey
> 817.403.7500
> M. Miller & Associates
> [email protected]


-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to