init code of hadoop training