storm-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsha <st...@harsha.io>
Subject Re: Is it possible to 'force' a topology ID to a specific value?
Date Mon, 15 Dec 2014 06:27:36 GMT

Sheldon, You can also make a call to /api/v1/topology/summary to get a
list of topologies
https://github.com/apache/storm/blob/master/STORM-UI-REST-API.md#apiv1topologysummary-get

-Harsha

On Sun, Dec 14, 2014, at 12:50 PM, Manoj Jaiswal wrote:
> Why dont you use the storm list command and use the output to make up
> the url. That will give the topology name,
>
> Else you can do a ls on storm local directory to get exact id of
> toplogy.
>
> ls /home/storm/storm-local/nimbus/stormdist
>
> Additionally you can query zookeeper for storm node directory and you
> will get topology id from there.
>
>
> Hope this helps.
>
> -Manoj
>
>
> On Fri, Dec 12, 2014 at 1:52 PM, Sheldon White
> <sheldonwhite@comcast.net> wrote:
>> I’m currently looking at ways to leverage the Storm HTTP APIs to
>> monitor the health of our storm cluster and a running topology in
>> particular. I can get all the statistics I need when I know a
>> particular topology ID, parsing the json returned from a URL like:
>> http://servername:8080/api/v1/topology/production-topology-1418162192
>> with our existing monitoring apparatus. The problem is that I can’t
>> setup a fixed URL for our monitoring systems because Storm builds
>> it’s own ID from the topology name: name + nonce. As it stands, I'd
>> need to write code to list all running topologies and parse out the
>> one I’m interested in, requiring a an application layer I don’t want
>> to write at the moment. Is it possible to override Storm’s appending
>> the nonce, forcing it to use the specific ID string I want?
>>
>> thanks in advance
>>
>> sheldonwhite@comcast.net


Mime
View raw message