accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ott, Charles H." <>
Subject RE: Getting the IP Address
Date Wed, 28 Aug 2013 17:41:26 GMT
I believe the same script would be used on a  local development VM.
Since I don't have DNS for my host-only vm adapter, a reverse dns lookup
would fail.  


[] On
Behalf Of Ravi Mutyala
Sent: Wednesday, August 28, 2013 11:39 AM
Subject: Getting the IP Address



I see from the accumulo-tracer init.d script that IP is determined by
this logic.

ifconfig | grep inet[^6] | awk '{print $2}' | sed 's/addr://' | grep -v | grep -v | head -n 1

Any reason for using this logic instead of a hostname -i and using
reverse dns lookup? I have a cluster where the order of nics on one of
the nodes is in a different order and ifconfig returns a IP from a
different subnet than for other nodes. But DNS and reverse DNS are
properly configured. 


NOTICE: This message is intended for the use of the individual or entity
to which it is addressed and may contain information that is
confidential, privileged and exempt from disclosure under applicable
law. If the reader of this message is not the intended recipient, you
are hereby notified that any printing, copying, dissemination,
distribution, disclosure or forwarding of this communication is strictly
prohibited. If you have received this communication in error, please
contact the sender immediately and delete it from your system. Thank

View raw message