private void setupTaskLogFileAccess ( TaskControllerContext context ) { TaskAttemptID taskId = context . task . getTaskID ( ) ; File f = TaskLog . getTaskLogFile ( taskId , TaskLog . LogName . SYSLOG ) ; String taskAttemptLogDir = f . getParentFile ( ) . getAbsolutePath ( ) ; changeDirectoryPermissions ( taskAttemptLogDir , FILE_PERMISSIONS , false ) ; }
the task log directory