-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added IP check compared to host name #36
base: master
Are you sure you want to change the base?
Conversation
some things like the NUC machines have crazy weird networking that may not work with this...need to verify. @tkunicki can you check on a mac? |
@nhambletCCRI or @ellisbjohns take a look...seems useful to others... |
conf/cloud-local.conf
Outdated
@@ -35,6 +35,14 @@ if [[ -z "${CL_BIND_ADDRESS}" ]]; then | |||
CL_BIND_ADDRESS="127.0.0.1" | |||
fi | |||
|
|||
# compare the two | |||
resolved_ip=$(getent hosts $CL_HOSTNAME | awk '{print $1}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getent
isn't available on BSD, quick search has me stumped for replacement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm what about another way on a bsd box to get the hostname,ip mappings?
Have we done enough testing on the NUCs to confirm that this works? |
Should see something like this: instead of localhost.localdomain/127.0.0.1 and it should match as the namenode names... |
this is important when running hbase that binds not on 127.x but on the external ip of the box |
This checks to see if the configured hostname and IP resolve to the same address. If not the datanodes don't like it and it won't init...Most common problem is that the people are setting a short name in /etc/hosts or something like that.