[ 
https://issues.apache.org/jira/browse/STORM-853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14575589#comment-14575589
 ] 

ASF GitHub Bot commented on STORM-853:
--------------------------------------

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



> Uploading topology via REST API can't handle multiple main class arguments 
> properly
> -----------------------------------------------------------------------------------
>
>                 Key: STORM-853
>                 URL: https://issues.apache.org/jira/browse/STORM-853
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Jungtaek Lim
>            Assignee: Jungtaek Lim
>
> Storm-starter has sample topology, RollingTopWords.
> It receives two arguments, first one is topology name, and next one is local 
> or remote mode.
> But when I upload this topology via REST API to make it run with remote mode, 
> I can't find topology via UI, and it's waiting for response. 
> {code}
> 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
> {code}
> Pushed 'ctrl + c' gives response which is error json including whole logs 
> topology prints out. Topology is run via local mode. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to