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

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

Github user HeartSaVioR commented on the pull request:

    https://github.com/apache/storm/pull/464#issuecomment-87623121
  
    I just build dist from your branch, and modifies wurstmeister docker to 
apply your branch during build.
    
    Binary dist : 
https://www.dropbox.com/s/ldm9t76cm43zqdf/apache-storm-0.10.0-SNAPSHOT.tar.gz?dl=0
    
    I gave a try with using a token and ring-session (cookie) but failed.
    
    ```
    HTTP/1.1 100 Continue
    
    HTTP/1.1 200 OK
    Date: Mon, 30 Mar 2015 10:10:31 GMT
    Cache-Control: no-cache, no-store
    Content-Type: application/json;charset=utf-8
    Content-Length: 55
    Server: Jetty(7.6.13.v20130916)
    
    {"error":"Failed to deploy topology","status":"failed"}
    ```
    
    Here's UI log.
    ```
    2015-03-30 10:10:42 b.s.u.core [INFO] topology cmd {:exit 1, :out "434  
[main] INFO  backtype.storm.StormSubmitter - Generated ZooKeeper secret payload 
for MD5-digest: -5707587195506149327:-9132844115790108814\n439  [main] INFO  
backtype.storm.security.auth.AuthUtils - Got AutoCreds []\n450  [main] INFO  
backtype.storm.utils.StormBoundedExponentialBackoffRetry - The baseSleepTimeMs 
[2000] the maxSleepTimeMs [60000] the maxRetries [5]\n", :err "Exception in 
thread \"main\" java.lang.RuntimeException: 
org.apache.thrift7.transport.TTransportException: java.net.ConnectException: 
Connection refused\n\tat 
backtype.storm.security.auth.TBackoffConnect.retryNext(TBackoffConnect.java:59)\n\tat
 
backtype.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:51)\n\tat
 
backtype.storm.security.auth.ThriftClient.reconnect(ThriftClient.java:103)\n\tat
 backtype.storm.security.auth.ThriftClient.<init>(ThriftClient.java:72)\n\tat 
backtype.storm.utils.NimbusClient.<init>(NimbusClient.java:62)\n\tat 
backtype.storm.utils.NimbusClient.getConfiguredClientAs(NimbusClient.java:46)\n\tat
 backtype.storm.StormSubmitter.submitTopologyAs(StormSubmitter.java:225)\n\tat 
backtype.storm.StormSubmitter.submitTopology(StormSubmitter.java:271)\n\tat 
backtype.storm.StormSubmitter.submitTopologyWithProgressBar(StormSubmitter.java:307)\n\tat
 
backtype.storm.StormSubmitter.submitTopologyWithProgressBar(StormSubmitter.java:288)\n\tat
 storm.starter.WordCountTopology.main(WordCountTopology.java:94)\nCaused by: 
org.apache.thrift7.transport.TTransportException: java.net.ConnectException: 
Connection refused\n\tat 
org.apache.thrift7.transport.TSocket.open(TSocket.java:187)\n\tat 
org.apache.thrift7.transport.TFramedTransport.open(TFramedTransport.java:81)\n\tat
 
backtype.storm.security.auth.SimpleTransportPlugin.connect(SimpleTransportPlugin.java:102)\n\tat
 
backtype.storm.security.auth.TBackoffConnect.doConnectWithRetry(TBackoffConnect.java:48)\n\t...
 9 more\nCaused by: java.net.ConnectException: Connection refused\n\tat 
java.net.PlainSocketImpl.socketConnect(Native Method)\n\tat 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)\n\tat
 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)\n\tat
 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)\n\tat
 java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)\n\tat 
java.net.Socket.connect(Socket.java:579)\n\tat 
org.apache.thrift7.transport.TSocket.open(TSocket.java:182)\n\t... 12 more\n"}
    2015-03-30 10:11:14 b.s.thrift [INFO] Connecting to Nimbus at 
172.17.0.62:6627 as user:
    ...
    2015-03-30 10:11:14 b.s.u.StormBoundedExponentialBackoffRetry [INFO] The 
baseSleepTimeMs [2000] the maxSleepTimeMs [60000] the maxRetries [5]
    ...
    ```
    
    Seems like UI server can reach Nimbus Thrift port, I've confirmed with 
telnet.
    Does 0.10.x run into security mode as default? I didn't modify 
configuration file from 0.9.3.


> 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