public String getUserName ( TaskAttemptID taskId ) { TaskInProgress tip = tasks . get ( taskId ) ; if ( tip != null ) { return tip . getJobConf ( ) . getUser ( ) ; } return null ; }
Obtain username from TaskId