[
https://issues.apache.org/jira/browse/STORM-615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14387872#comment-14387872
]
ASF GitHub Bot commented on STORM-615:
--------------------------------------
Github user harshach commented on the pull request:
https://github.com/apache/storm/pull/464#issuecomment-87910582
@HeartSaVioR I did tested multi-node cluster before opening a PR. Ran
another test with your apache-storm.tar.gz using the vagrant setup.
https://github.com/harshach/storm-vagrant
you can drop in the apache-storm.tar.gz . Make sure bin/storm has execute
permissions the link you've doesn't and convert it into zip file.
vagrant up will create multinode storm cluster(1 zk, 1 nimbus, 2
supervisors)
curl -i --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt
http://nimbus.witzend.com:8080/api/v1/token ◉ ◼◼◼◼◼◼◼◼◻◻
HTTP/1.1 200 OK
Date: Tue, 31 Mar 2015 02:46:05 GMT
Set-Cookie: ring-session=64ce2e4d-d62b-4e45-8cd0-4c778948d7b5;Path=/
Cache-Control: no-cache, no-store
Content-Type: application/json;charset=utf-8
Content-Length: 104
Server: Jetty(7.6.13.v20130916)
{"antiForgeryToken":
"wMYtcaNy8yA90jacPXw+BK4vE0w6c748shhtvr6HYeR1lhpFsO+1k2CSIMq+GUqpTnuwwn8/tDUbPyEK"}
Here is the output of uploadTopology
curl -i --negotiate -u : -b ~/cookiejar.txt -c ~/cookiejar.txt -X POST
-H 'x-csrf-token:
wMYtcaNy8yA90jacPXw+BK4vE0w6c748shhtvr6HYeR1lhpFsO+1k2CSIMq+GUqpTnuwwn8/tDUbPyEK'
-F topologyConfig='{"topologyMainClass": "storm.starter.WordCountTopology",
"topologyMainClassArgs": ["wordcount1"]}' -F
topologyJar=@examples/storm-starter/storm-starter-topologies-0.10.0-SNAPSHOT.jar
http://nimbus.witzend.com:8080/api/v1/uploadTopology
HTTP/1.1 100 Continue
HTTP/1.1 200 OK
Date: Tue, 31 Mar 2015 02:48:38 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"}
> 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)