format code of hadoop component