You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "Rick Kellogg (JIRA)" <ji...@apache.org> on 2015/10/09 03:34:27 UTC
[jira] [Updated] (STORM-861) Rebalance REST API : "executors" in
rebalanceOptions doesn't seem to be reflected while rebalancing
[ https://issues.apache.org/jira/browse/STORM-861?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rick Kellogg updated STORM-861:
-------------------------------
Component/s: storm-core
> Rebalance REST API : "executors" in rebalanceOptions doesn't seem to be reflected while rebalancing
> ---------------------------------------------------------------------------------------------------
>
> Key: STORM-861
> URL: https://issues.apache.org/jira/browse/STORM-861
> Project: Apache Storm
> Issue Type: Bug
> Components: storm-core
> Reporter: Jungtaek Lim
> Priority: Minor
>
> There's one topology in cluster, and it is storm.starter.RollingTopWords from storm-starter.
> https://github.com/apache/storm/blob/master/examples/storm-starter/src/jvm/storm/starter/RollingTopWords.java
> I just ran rebalance via REST API, and found something is not working properly.
> {noformat}
> curl -X POST -H "Content-Type: application/json" -d '{"rebalanceOptions": {"numWorkers": 2, "executors": {"wordGenerator": 10, "counter": 7, "intermediateRanker": 10}}}' http://localhost:8080/api/v1/topology/production-topology-4-1433927082/rebalance/50
> {noformat}
> It changes number of workers to 2, but it doesn't change any components' executor count.
> Sample of rebalance REST API from document is here.
> {noformat}
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST
> -H "Content-Type: application/json"
> -d '{"rebalanceOptions": {"numWorkers": 2, "executors": { "spout" : "5", "split": 7, "count": 5 }}, "callback":"foo"}'
> http://localhost:8080/api/v1/topology/wordcount-1-1420308665/rebalance/0
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)