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

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

Github user wuchong commented on the pull request:

    https://github.com/apache/storm/pull/1082#issuecomment-189140525
  
    I find that when we set `nimbus.seeds` as ip, such as `nimbus.seeds: 
[10.0.0.10]`. Then a nimbus for 10.0.0.10 will be 'Offline'.
    
    That's because the nimbus information saved in zk is CanonicalHostName. But 
the nimbus seeds we set maybe ip. At last, the nimbus with ip will be 
'Offline'. 
    
    ```
    offline-nimbuses (clojure.set/difference nimbus-seeds alive-nimbuses)
    ```
    
    <img width="1268" alt="2016-02-26 2 51 43" 
src="https://cloud.githubusercontent.com/assets/5378924/13345347/10e3c232-dc99-11e5-9350-5ff1c6c65224.png";>
    
    Maybe we need to change all nimbus-seeds to hostname, before do 
set/difference.


> With nimbus.seeds set to default, a nimbus for localhost may appear "Offline"
> -----------------------------------------------------------------------------
>
>                 Key: STORM-1492
>                 URL: https://issues.apache.org/jira/browse/STORM-1492
>             Project: Apache Storm
>          Issue Type: Bug
>          Components: storm-core
>    Affects Versions: 1.0.0
>            Reporter: P. Taylor Goetz
>            Assignee: Jungtaek Lim
>            Priority: Minor
>
> With the default value for {{nimbus.seeds}} ({{["localhost"]}}) Storm UI may 
> list one "Offline" nimbus for localhost, and another as "Leader" for the 
> resolved machine name.
> Steps to reproduce (assumes ZK is running; all on local machine):
> 1. Clean install of 1.0.0-SNAPSHOT (do not modify {{storm.yaml}})
> 2. Start nimbus
> 3. Start supervisor
> 4. Start ui
> 5. Navigate to http://localhost:8080
> A workaround is to modify {{storm.yaml}} and replace "localhost" with the 
> hostname of the machine in {{nimbus.seeds}}.
> While trivial to correct, this may confuse users. One approach is to simply 
> document this behavior.



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

Reply via email to