Github user HeartSaVioR commented on the pull request:
https://github.com/apache/storm/pull/581#issuecomment-109526183
Case 1.
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST -F
topologyConfig='{"topologyMainClass": "storm.starter.WordCountTopology"}' -F
[email protected]
http://localhost:8080/api/v1/uploadTopology
WordCountTopology runs via local mode -- OK
Case 2.
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST -F
topologyConfig='{"topologyMainClass": "storm.starter.WordCountTopology",
"topologyMainClassArgs": []}' -F
[email protected]
http://localhost:8080/api/v1/uploadTopology
WordCountTopology runs via local mode -- OK
Case 3.
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST -F
topologyConfig='{"topologyMainClass": "storm.starter.WordCountTopology",
"topologyMainClassArgs": ["a"]}' -F
[email protected]
http://localhost:8080/api/v1/uploadTopology
WordCountTopology runs via remote mode, which topology name is "a" -- OK
Case 4.
> curl -i -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST -F
topologyConfig='{"topologyMainClass": "storm.starter.RollingTopWords",
"topologyMainClassArgs": ["production-topology", "remote"]}' -F
[email protected]
http://localhost:8080/api/v1/uploadTopology
RollingTopWords runs via remote mode, which topology name is
"production-topology" -- OK
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---