You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@storm.apache.org by Link Wang <li...@gmail.com> on 2014/02/18 08:47:52 UTC
How to specify worker.childopts for a specified topology?
Dear all,
I want to specify some worker.childopts for my topology inner it's code,
and I use this way:
conf.put(Config.WORKER_CHILDOPTS, WORKER_OPTS);
but I found it doesn't work.
I don't use storm.yaml file to set worker.childopts, because the memory
requirement of my topologies are widely different.
is there some one encounter the same problem?
Re: How to specify worker.childopts for a specified topology?
Posted by Link Wang <li...@gmail.com>.
Yes! it works when using Config.TOPOLOGY_WORKER_CHILDOPTS.
Thanks a lot!
On Tue, Feb 18, 2014 at 11:50 PM, Derek Dagit <de...@yahoo-inc.com> wrote:
> Try this:
>
> conf.put(Config.TOPOLOGY_WORKER_CHILDOPTS, WORKER_OPTS);
>
> Your WORKER_OPTS should be appended to WORKER_CHILDOPTS.
> --
> Derek
>
>
> On 2/18/14, 1:47, Link Wang wrote:
>
>> Dear all,
>> I want to specify some worker.childopts for my topology inner it's code,
>> and I use this way:
>> conf.put(Config.WORKER_CHILDOPTS, WORKER_OPTS);
>> but I found it doesn't work.
>>
>> I don't use storm.yaml file to set worker.childopts, because the memory
>> requirement of my topologies are widely different.
>>
>> is there some one encounter the same problem?
>>
>
Re: How to specify worker.childopts for a specified topology?
Posted by Derek Dagit <de...@yahoo-inc.com>.
Try this:
conf.put(Config.TOPOLOGY_WORKER_CHILDOPTS, WORKER_OPTS);
Your WORKER_OPTS should be appended to WORKER_CHILDOPTS.
--
Derek
On 2/18/14, 1:47, Link Wang wrote:
> Dear all,
> I want to specify some worker.childopts for my topology inner it's code, and I use this way:
> conf.put(Config.WORKER_CHILDOPTS, WORKER_OPTS);
> but I found it doesn't work.
>
> I don't use storm.yaml file to set worker.childopts, because the memory requirement of my topologies are widely different.
>
> is there some one encounter the same problem?