code: public static String getTaskLogUrl(String taskTrackerHostName,
        String httpPort, String taskAttemptID) {
      return ("http://" + taskTrackerHostName + ":" + httpPort
          + "/tasklog?taskid=" + taskAttemptID);
    }
docs: Construct the taskLogUrl
  @param taskTrackerHostName
  @param httpPort
  @param taskAttemptID
  @return the taskLogUrl