Skip to content

This tool is expected to be run locally on the client in question and can not be used to verify a remote clients DNS configuration settings

Notifications You must be signed in to change notification settings

randomtask1155/HadoopDNSVerifier

Repository files navigation

Purpose

In some cases it may not be apparent to end user how java is resolving the hostnames of the hadoop cluster nodes. This could be because of a issue with any of the following configuration settings

  • /etc/sysconfig/network
  • /etc/resolve.conf
  • /etc/hosts

Usage

This tool is expected to be run locally on the client in question and can not be used to verify a remote clients DNS configuration settings.

##Verify the local hostname resolution

 java -classpath HadoopDNSVerifier-1.0.jar hadoop.troubleshooting.HadoopDNSVerifier.CheckLocal

Output:

  IP:10.181.22.149 hostname:hdm4.gphd.local canonicalName:hdm4.gphd.local

##Verify remote hostname resolution

 java -classpath HadoopDNSVerifier-1.0.jar hadoop.troubleshooting.HadoopDNSVerifier.CheckRemote hdm3.gphd.local

Output:

 IP:10.181.22.149 hostname:hdm3.gphd.local canonicalName:hdm3.gphd.local

#Build

 mvn package

About

This tool is expected to be run locally on the client in question and can not be used to verify a remote clients DNS configuration settings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages