You'd be better off using DNS with multiple cnames, or a loadbalancer. That way you can add/remove nodes as needed and not have to change your clients.
It's really up to you how you manage this. It might make sense for your use case, but if you have your cluster deployment automated, it probably won't matter a lot.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.