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

paul cannon commented on CASSANDRA-2238:
----------------------------------------

It might be nontrivial- it depends on what we define as the hostname for a 
node: the node's own OS {{hostname}} output, or some other lookup (DNS, NSS, 
etc) of each node IP from the system running nodetool?  The former makes more 
sense, but the only way I could identify to accomplish it, last time I tried, 
was to query the {{Name}} attribute of {{java.lang:type=Runtime}}, and depend 
on it always containing the local hostname after the @ sign. I have no idea 
whether that's a valid thing to depend on, and it seems a little bit 
excessively ghetto for something like nodetool.

The right solution would probably be adding a jmx attribute exposing the "real" 
node name.

If instead this ticket is asking for reverse DNS lookups or something, then I'm 
-1 on the whole thing.

> Allow nodetool to print out hostnames given an option
> -----------------------------------------------------
>
>                 Key: CASSANDRA-2238
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2238
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Tools
>            Reporter: Joaquin Casares
>            Assignee: paul cannon
>            Priority: Trivial
>             Fix For: 0.8.1
>
>
> Give nodetool the option of either displaying IPs or hostnames for the nodes 
> in a ring.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to