Git Product home page Git Product logo

hadoop-dns-checker's Introduction

######Forked from  sujee/hadoop-dns-checker . Credits to original author for the base code.

We noticed that some parts of `hadoop/hbase` uses JNDI for DNS lookups, which doesn't really respect the OS DNS 
configuration.

The most noticeable symptom : 
`Cannot resolve the host name for <host>/<ip> because of javax.naming
.CommunicationException: 
DNS error [Root exception is java.net.SocketTimeoutException: Receive timed out]; remaining name '<ip>.in-addr.arpa'`

I have hacked together the `hadoop` DNS code to this utility. (I needed to quickly verify our issues with DNS , So
didnt care much about the code hygiene)
It will give a reasonable idea if the infrastructure is
 `hadoop` friendly.

## Original readme content follows ##

Hadoop is picky about DNS (and reverse DNS!)
Every node in the cluster has to have DNS working properly.

This script checks DNS and reverse DNS for hosts given.  Hosts are specified in a file, on a line by line basis.

What is needed:
    - Java (JDK 1.6) : which you will have installed in a Hadoop cluster anyway
    - rsync (to distribute files to remote machines)
    - SSH (and password less SSH setup between hosts)

Compile the source files first:
    ./compile.sh
this will create a file 'a.jar'.  This jar will be used by run scripts

the script 'run.sh'  runs the checks on the current host:
    ./run.sh   hosts_file

'run-on-cluster.sh' runs the tests on all machines specified in hosts file
    - it uses SSH to login to remote hosts and run the tests.  So it is handy to have password-less SSH configured.  
      In a typical Hadoop cluster, 'master' host is setup to have password-less SSH to all slaves.  So this script can be run from master server

    - it logs into each host and runs the DNS test

    ./run-on-cluster.sh  hosts_file

Happy Hadooping!

Sujee Maniyam
[email protected]

hadoop-dns-checker's People

Contributors

sujee avatar shyam334-w1 avatar shyam334 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.