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

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

Github user harshach commented on the pull request:

    https://github.com/apache/storm/pull/464#issuecomment-87874852
  
    @HeartSaVioR Thanks for testing it out. I ran few tests with your dropbox 
link. For starters your apache-storm-0.10-SNAPSHOT contains two different 
versions of clojure libs under lib folder. Delete clojure-1.5.1.jar and started 
a single node cluster. 
    
    curl -i --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt  
http://localhost:8080/api/v1/token 
    The above call stores the ring-session id in the cookiejar.txt
    
    curl  -i --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST  -H 
'x-csrf-token: 
jz8utSXi0PM1timC5phUelnMaYxcRGba8PEHWL1yU2WEQL59zwijyP4GjWv/uhDWUJAD7tS50vyF8R4E'
  -F  topologyConfig='{"topologyMainClass": "storm.starter.WordCountTopology", 
"topologyMainClassArgs": ["wordcount1"]}' -F 
topologyJar=@examples/storm-starter/storm-starter-topologies-0.10.0-SNAPSHOT.jar
 http://localhost:8080/api/v1/uploadTopology
    HTTP/1.1 100 Continue
    
    HTTP/1.1 200 OK
    Date: Mon, 30 Mar 2015 23:18:45 GMT
    Cache-Control: no-cache, no-store
    Content-Type: application/json;charset=utf-8
    Content-Length: 20
    Server: Jetty(7.6.13.v20130916)
    
    {"status":"success"}
    
    
![stormui-uploadtopology](https://cloud.githubusercontent.com/assets/38649/6909250/f7032426-d6f8-11e4-98f7-9ce44651110d.png)



> Add REST API to upload topology
> -------------------------------
>
>                 Key: STORM-615
>                 URL: https://issues.apache.org/jira/browse/STORM-615
>             Project: Apache Storm
>          Issue Type: Bug
>            Reporter: Sriharsha Chintalapani
>            Assignee: Sriharsha Chintalapani
>
> Add REST api /api/v1/submitTopology to upload topology jars and config using 
> REST api.



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

Reply via email to