├── .classpath ├── .gitignore ├── .project ├── .settings ├── org.eclipse.jdt.core.prefs └── org.eclipse.jdt.ui.prefs ├── README.txt ├── compile.sh ├── hosts1 ├── run-on-cluster.sh ├── run.sh └── src └── net └── sujee └── hadoop └── CheckDNS.java /.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | *.jar 3 | .DS_Store 4 | *.swp 5 | -------------------------------------------------------------------------------- /.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | hadoop-dns-checker 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.jdt.core.javanature 16 | 17 | 18 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | #Wed Feb 15 12:20:12 PST 2012 2 | eclipse.preferences.version=1 3 | org.eclipse.jdt.core.codeComplete.argumentPrefixes= 4 | org.eclipse.jdt.core.codeComplete.argumentSuffixes= 5 | org.eclipse.jdt.core.codeComplete.fieldPrefixes= 6 | org.eclipse.jdt.core.codeComplete.fieldSuffixes= 7 | org.eclipse.jdt.core.codeComplete.localPrefixes= 8 | org.eclipse.jdt.core.codeComplete.localSuffixes= 9 | org.eclipse.jdt.core.codeComplete.staticFieldPrefixes= 10 | org.eclipse.jdt.core.codeComplete.staticFieldSuffixes= 11 | org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes= 12 | org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes= 13 | org.eclipse.jdt.core.formatter.align_type_members_on_columns=false 14 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16 15 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0 16 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16 17 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16 18 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16 19 | org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16 20 | org.eclipse.jdt.core.formatter.alignment_for_assignment=0 21 | org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16 22 | org.eclipse.jdt.core.formatter.alignment_for_compact_if=52 23 | org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=48 24 | org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0 25 | org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16 26 | org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0 27 | org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16 28 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16 29 | org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16 30 | org.eclipse.jdt.core.formatter.alignment_for_resources_in_try=80 31 | org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16 32 | org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=64 33 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=64 34 | org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=64 35 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16 36 | org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16 37 | org.eclipse.jdt.core.formatter.alignment_for_union_type_in_multicatch=16 38 | org.eclipse.jdt.core.formatter.blank_lines_after_imports=0 39 | org.eclipse.jdt.core.formatter.blank_lines_after_package=0 40 | org.eclipse.jdt.core.formatter.blank_lines_before_field=0 41 | org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0 42 | org.eclipse.jdt.core.formatter.blank_lines_before_imports=0 43 | org.eclipse.jdt.core.formatter.blank_lines_before_member_type=0 44 | org.eclipse.jdt.core.formatter.blank_lines_before_method=0 45 | org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=0 46 | org.eclipse.jdt.core.formatter.blank_lines_before_package=0 47 | org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1 48 | org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=0 49 | org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line 50 | org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line 51 | org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line 52 | org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line 53 | org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line 54 | org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line 55 | org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line 56 | org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line 57 | org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line 58 | org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line 59 | org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line 60 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false 61 | org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false 62 | org.eclipse.jdt.core.formatter.comment.format_block_comments=true 63 | org.eclipse.jdt.core.formatter.comment.format_header=false 64 | org.eclipse.jdt.core.formatter.comment.format_html=true 65 | org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true 66 | org.eclipse.jdt.core.formatter.comment.format_line_comments=true 67 | org.eclipse.jdt.core.formatter.comment.format_source_code=true 68 | org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true 69 | org.eclipse.jdt.core.formatter.comment.indent_root_tags=true 70 | org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert 71 | org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert 72 | org.eclipse.jdt.core.formatter.comment.line_length=80 73 | org.eclipse.jdt.core.formatter.comment.new_lines_at_block_boundaries=true 74 | org.eclipse.jdt.core.formatter.comment.new_lines_at_javadoc_boundaries=true 75 | org.eclipse.jdt.core.formatter.comment.preserve_white_space_between_code_and_line_comments=false 76 | org.eclipse.jdt.core.formatter.compact_else_if=true 77 | org.eclipse.jdt.core.formatter.continuation_indentation=2 78 | org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2 79 | org.eclipse.jdt.core.formatter.disabling_tag=@formatter\:off 80 | org.eclipse.jdt.core.formatter.enabling_tag=@formatter\:on 81 | org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false 82 | org.eclipse.jdt.core.formatter.format_line_comment_starting_on_first_column=true 83 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true 84 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true 85 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true 86 | org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true 87 | org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true 88 | org.eclipse.jdt.core.formatter.indent_empty_lines=false 89 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true 90 | org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true 91 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true 92 | org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=true 93 | org.eclipse.jdt.core.formatter.indentation.size=4 94 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_field=insert 95 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert 96 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_method=insert 97 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_package=insert 98 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert 99 | org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_type=insert 100 | org.eclipse.jdt.core.formatter.insert_new_line_after_label=do not insert 101 | org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert 102 | org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert 103 | org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert 104 | org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert 105 | org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert 106 | org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert 107 | org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert 108 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert 109 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert 110 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert 111 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert 112 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert 113 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert 114 | org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert 115 | org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert 116 | org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert 117 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert 118 | org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert 119 | org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert 120 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert 121 | org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert 122 | org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert 123 | org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert 124 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert 125 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert 126 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert 127 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert 128 | org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert 129 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert 130 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert 131 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert 132 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert 133 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert 134 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert 135 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert 136 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert 137 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert 138 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert 139 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert 140 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert 141 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert 142 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert 143 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert 144 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert 145 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert 146 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert 147 | org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert 148 | org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert 149 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert 150 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert 151 | org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert 152 | org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert 153 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert 154 | org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert 155 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert 156 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert 157 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert 158 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert 159 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert 160 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert 161 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert 162 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert 163 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert 164 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert 165 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert 166 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert 167 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_try=do not insert 168 | org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert 169 | org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert 170 | org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert 171 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert 172 | org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert 173 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert 174 | org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_try_resources=insert 175 | org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert 176 | org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert 177 | org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert 178 | org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert 179 | org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert 180 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert 181 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert 182 | org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert 183 | org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert 184 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert 185 | org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert 186 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert 187 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert 188 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert 189 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert 190 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert 191 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert 192 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert 193 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert 194 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert 195 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert 196 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert 197 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert 198 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_try=do not insert 199 | org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert 200 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert 201 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=insert 202 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert 203 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=insert 204 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert 205 | org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=insert 206 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert 207 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert 208 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert 209 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert 210 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert 211 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert 212 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert 213 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert 214 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert 215 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert 216 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert 217 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert 218 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert 219 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert 220 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert 221 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert 222 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert 223 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert 224 | org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert 225 | org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert 226 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert 227 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert 228 | org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert 229 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert 230 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert 231 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=do not insert 232 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert 233 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert 234 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert 235 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert 236 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert 237 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert 238 | org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert 239 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert 240 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert 241 | org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert 242 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert 243 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert 244 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert 245 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert 246 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert 247 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert 248 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert 249 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert 250 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert 251 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert 252 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert 253 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert 254 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_try=insert 255 | org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert 256 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert 257 | org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert 258 | org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert 259 | org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert 260 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert 261 | org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert 262 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert 263 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert 264 | org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_try_resources=do not insert 265 | org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert 266 | org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert 267 | org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert 268 | org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert 269 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert 270 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert 271 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert 272 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert 273 | org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert 274 | org.eclipse.jdt.core.formatter.join_lines_in_comments=true 275 | org.eclipse.jdt.core.formatter.join_wrapped_lines=true 276 | org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false 277 | org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false 278 | org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false 279 | org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false 280 | org.eclipse.jdt.core.formatter.lineSplit=80 281 | org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false 282 | org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false 283 | org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0 284 | org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1 285 | org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=false 286 | org.eclipse.jdt.core.formatter.tabulation.char=tab 287 | org.eclipse.jdt.core.formatter.tabulation.size=4 288 | org.eclipse.jdt.core.formatter.use_on_off_tags=false 289 | org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false 290 | org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true 291 | org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true 292 | org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true 293 | -------------------------------------------------------------------------------- /.settings/org.eclipse.jdt.ui.prefs: -------------------------------------------------------------------------------- 1 | #Wed Feb 15 12:20:12 PST 2012 2 | eclipse.preferences.version=1 3 | formatter_profile=org.eclipse.jdt.ui.default_profile 4 | formatter_settings_version=12 5 | org.eclipse.jdt.ui.exception.name=e 6 | org.eclipse.jdt.ui.gettersetter.use.is=true 7 | org.eclipse.jdt.ui.keywordthis=false 8 | org.eclipse.jdt.ui.overrideannotation=true 9 | -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | Hadoop is picky about DNS (and reverse DNS!) 2 | Every node in the cluster has to have DNS working properly. 3 | 4 | This script checks DNS and reverse DNS for hosts given. Hosts are specified in a file, on a line by line basis. 5 | 6 | What is needed: 7 | - Java (JDK 1.6) : which you will have installed in a Hadoop cluster anyway 8 | - rsync (to distribute files to remote machines) 9 | - SSH (and password less SSH setup between hosts) 10 | 11 | Compile the source files first: 12 | ./compile.sh 13 | this will create a file 'a.jar'. This jar will be used by run scripts 14 | 15 | the script 'run.sh' runs the checks on the current host: 16 | ./run.sh hosts_file 17 | 18 | 'run-on-cluster.sh' runs the tests on all machines specified in hosts file 19 | - it uses SSH to login to remote hosts and run the tests. So it is handy to have password-less SSH configured. 20 | 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 21 | 22 | - it logs into each host and runs the DNS test 23 | 24 | ./run-on-cluster.sh hosts_file 25 | 26 | Happy Hadooping! 27 | 28 | Sujee Maniyam 29 | s@sujee.net 30 | -------------------------------------------------------------------------------- /compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | CLASS_DIR=classes2 5 | mkdir -p $CLASS_DIR 6 | rm -rf $CLASS_DIR/* 7 | 8 | 9 | javac -d $CLASS_DIR -sourcepath src $(find src -name "*.java") 10 | 11 | rm -rf a.jar 12 | jar cf a.jar -C $CLASS_DIR . 13 | 14 | 15 | -------------------------------------------------------------------------------- /hosts1: -------------------------------------------------------------------------------- 1 | host1.mydomain.com 2 | host2.mydomain.com 3 | #host3.mydomain.com 4 | -------------------------------------------------------------------------------- /run-on-cluster.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [ -z "$1" ] ; then 4 | echo "usage : $0 : " 5 | exit 1 6 | fi 7 | 8 | files="$*" 9 | remote_dir="hadoop-dns" 10 | 11 | for host in $(cat $* | grep -v '#') 12 | do 13 | echo 14 | echo "==== $host ==== " 15 | rsync -avz --delete -e ssh a.jar run.sh $files "${host}:${remote_dir}" 16 | ssh $host "cd ${remote_dir} ; sh run.sh $files" 17 | done 18 | -------------------------------------------------------------------------------- /run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | java -cp a.jar net.sujee.hadoop.CheckDNS $* 4 | 5 | 6 | -------------------------------------------------------------------------------- /src/net/sujee/hadoop/CheckDNS.java: -------------------------------------------------------------------------------- 1 | package net.sujee.hadoop; 2 | 3 | import java.io.BufferedReader; 4 | import java.io.FileReader; 5 | import java.io.IOException; 6 | import java.net.InetAddress; 7 | import java.net.UnknownHostException; 8 | import java.util.ArrayList; 9 | import java.util.List; 10 | 11 | /** 12 | * check dns and reverse dns of hosts in a given file 13 | * 14 | * @author sujee@sujee.net 15 | * 16 | */ 17 | public class CheckDNS { 18 | 19 | public static void main(String[] args) throws Exception { 20 | 21 | System.out.println("# self check..."); 22 | InetAddress inet = checkHost(null); 23 | System.out.println("# end self check\n"); 24 | 25 | if (args.length > 0) 26 | { 27 | if (inet != null) 28 | System.out.println("==== Running on : " + inet + " ====="); 29 | else 30 | System.out.println("==== Running on : unknown host ====="); 31 | } 32 | 33 | for (String s : args) { 34 | String[] hosts = readLinesFromFile(s, true); 35 | for (String host : hosts) { 36 | checkHost(host); 37 | System.out.println(""); 38 | } 39 | } 40 | } 41 | 42 | public static InetAddress checkHost(String host) { 43 | if (host != null) 44 | System.out.println("-- host : " + host); 45 | 46 | InetAddress inet = null; 47 | try { 48 | if (host != null) 49 | inet = InetAddress.getByName(host); 50 | else 51 | { 52 | inet = InetAddress.getLocalHost(); 53 | host = inet.getHostName(); 54 | System.out.println("-- host : " + host); 55 | } 56 | String ip = inet.getHostAddress(); 57 | System.out.println(" host lookup : success (" + ip + ")"); 58 | } catch (UnknownHostException e) { 59 | System.out.println(" host lookup : *** failed ***"); 60 | e.printStackTrace(); 61 | } 62 | 63 | // reverse 64 | if (inet != null) { 65 | try { 66 | InetAddress revHost = InetAddress.getByAddress(inet 67 | .getAddress()); 68 | String revHostName = revHost.getHostName(); 69 | if (host.equals(revHostName)) 70 | System.out.println(" reverse lookup : success (" 71 | + revHostName + ")"); 72 | else 73 | System.out.println(" reverse lookup : ***failed*** (" 74 | + revHostName + " != " + host + " (expected) )"); 75 | } catch (UnknownHostException e) { 76 | System.out.println(" reverse lookup : ***failed***"); 77 | 78 | } 79 | try { 80 | if (inet.isReachable(10)) 81 | System.out.println(" is reachable : yes"); 82 | else 83 | System.out.println(" is reachable : *** failed ***"); 84 | } catch (IOException e) { 85 | System.out.println(" is reachable : *** failed ***"); 86 | e.printStackTrace(); 87 | } 88 | 89 | } 90 | return inet; 91 | } 92 | 93 | public static String[] readLinesFromFile(String fileName, 94 | boolean skipCommentsAndBlanks) throws IOException { 95 | List lines = new ArrayList(); 96 | BufferedReader reader = new BufferedReader(new FileReader(fileName)); 97 | 98 | String line = null; 99 | while ((line = reader.readLine()) != null) { 100 | if (skipCommentsAndBlanks) { 101 | line = line.trim(); 102 | if (line.length() == 0) 103 | continue; 104 | 105 | if (line.startsWith("#")) 106 | continue; 107 | } 108 | lines.add(line); 109 | } 110 | 111 | String[] arrLines = new String[lines.size()]; 112 | lines.toArray(arrLines); 113 | return arrLines; 114 | } 115 | 116 | } 117 | --------------------------------------------------------------------------------