Skip to content

Conversation

@jahhulbert-ccri
Copy link
Contributor

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.

@jahhulbert-ccri
Copy link
Contributor Author

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?

@jahhulbert-ccri
Copy link
Contributor Author

@nhambletCCRI or @ellisbjohns take a look...seems useful to others...

fi

# compare the two
resolved_ip=$(getent hosts $CL_HOSTNAME | awk '{print $1}')
Copy link
Contributor

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

Copy link
Contributor Author

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?

@cne1x
Copy link
Contributor

cne1x commented Nov 18, 2016

Have we done enough testing on the NUCs to confirm that this works?

@jahhulbert-ccri
Copy link
Contributor Author

Should see something like this:
SHUTDOWN_MSG: Shutting down NameNode at /192.168.X.X

instead of localhost.localdomain/127.0.0.1 and it should match as the namenode names...

@jahhulbert-ccri
Copy link
Contributor Author

this is important when running hbase that binds not on 127.x but on the external ip of the box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants