cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-2238) Allow nodetool to print out hostnames given an option
Date Fri, 22 Apr 2011 08:08:06 GMT

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

Sylvain Lebresne commented on CASSANDRA-2238:
---------------------------------------------

I would argue than calling InetAddress.getHostName() would be a really trivial to use and
would in most cases 'do the right thing' (provided you have not some weird ass configuration).
It will be useful in environments where a reverse DNS lookup do the right thing (imho, any
non cloudy environment "should" - I know the cloud is the new cool thing around, but let's
not restrict us to that arbitrarily) and the hostnames are what people are used to. I know
at least one such environment where I would have been happy to have that option. 

Granted, this won't always be perfect, but if this is an option it's OK if it is only useful
for 10% of users. And granted too, it is easy enough to write a awk or shell script but I
think having the option directly will give a nicer sense of polish to nodetool (and thus Cassandra).
If as an admin I had taken time and love to configure my environment correctly, I would be
pissed to have to write a script because Cassandra "is too dumb to do a reverse DNS". Moreover,
we trade 5 lines of changes on our side against all user that wants it writing scripts (and
you know Cassandra will soon rule the world, so that will be a lot of users).

Anyway, just saying. It's no big deal and I don't care so much, but I do think we should try
to strive making Cassandra as easy on the user as possible, even in the details. And if I've
convinced you, know that I'll be happy to write the 5 lines patch.

> 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
>            Priority: Trivial
>
> 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

Mime
View raw message