Config should be set when the topology is created before it's sent to the
nimbus. If you write an option to the map there is no mechanism to
propagate the change to the rest of the instances of storm components.
On Apr 23, 2015 6:02 AM, "Matthias J. Sax" <[email protected]>
wrote:

> Hi,
>
> in the Spout/Bolt open()/prepare() method, a Map containing the current
> configuration is given. This Map is of type
> clojure.lang.PersistentHashMap and calling .put(...) raises an
> UnsupportedOperationException.
>
> I was wondering, why a persistent map is used? I could image, that
> system defined values should not be modified. But adding new key/value
> pairs is not allowed either (and would be very helpful in my case).
>
> Right now, I simply copy all values into a new HashMap object and add my
> own values to this new HashMap. But this is an annoying workaround I
> have to do each time...
>
> Would it make sense, the change the type of the system provided Map (or
> modify it's behavior to all for adding new key/value pairs)?
>
>
> -Matthias
>
>
>
>
>

Reply via email to