update and connect to hadoop successfully
refactor