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

Jungtaek Lim commented on STORM-875:
------------------------------------

{noformat}
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
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Date: Fri, 19 Jun 2015 06:42:34 GMT
Access-Control-Allow-Headers: Content-Type, Access-Control-Allow-Headers, 
Access-Controler-Allow-Origin, X-Requested-By, X-Csrf-Token, Authorization, 
X-Requested-With
Access-Control-Allow-Origin: *
Cache-Control: no-cache, no-store
Content-Type: application/json;charset=utf-8
Content-Length: 20
Server: Jetty(7.x.y-SNAPSHOT)
{noformat}

If you install Storm-0.10.0-beta, UI's Jetty version should be 
7.6.13.v20130916, but your UI's Jetty version is 6.1.26, which seems that you 
launched UI via old release of Storm.
Please check that your UI is launched to 0.10.0-beta.

ps aux | grep "backtype.storm.ui.core" | grep "storm-core-0.10.0-beta" should 
print your UI process.

When you think the issue is invalid, please close issue. :)

> 404 Not Found responded when issuing request '/api/v1/token'
> ------------------------------------------------------------
>
>                 Key: STORM-875
>                 URL: https://issues.apache.org/jira/browse/STORM-875
>             Project: Apache Storm
>          Issue Type: Bug
>    Affects Versions: 0.10.0
>         Environment: apache-storm-0.10.0-beta on REHL 5.5 64bit
>            Reporter: huxi
>
> I want to upload a topology via a new added REST service 
> '/api/v1/uploadTopology' introduced since 0.10. STORM-615 mentions a 
> ring-session token be required before uploading the topology. Here is what I 
> get when issuing command 'curl -i --negotiate -u : -b ~/cookiejar.txt -c 
> ~/cookiejar.txt http://localhost:8080/api/v1/token' in a shell:
> HTTP/1.1 404 Not Found
> Date: Thu, 18 Jun 2015 08:52:48 GMT
> Content-Type: text/html; charset=utf-8
> Content-Length: 14
> Server: Jetty(6.1.26)
> Page not found
>  
> That blocks me from submitting topologies via the exposed REST interface.



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

Reply via email to