make host pair comparable, add socketexception in hadoop server