Package org.apache.hadoop.mapred.JSPUtil

Examples of org.apache.hadoop.mapred.JSPUtil.JobWithViewAccessCheck


      out.print( jobId );
      out.write("</h2><br>\n\n");


  final JobID jobIdObj = JobID.forName(jobId);
  JobWithViewAccessCheck myJob = JSPUtil.checkAccessAndGetJob(tracker,
      jobIdObj, request, response);
  if (!myJob.isViewJobAllowed()) {
    return; // user is not authorized to view this job
  }

  JobInProgress job = myJob.getJob();
  // redirect to history page if it cannot be found in memory
  if (job == null) {
    String historyFile = tracker.getJobHistory().getHistoryFilePath(jobIdObj);
    if (historyFile == null) {
      out.println("<h2>Job " + jobId + " not known!</h2>");
View Full Code Here


    if(jobIdStr == null)
      return;
    final JobID jobId = JobID.forName(jobIdStr);

    // verify if user has view access for this job
    JobWithViewAccessCheck myJob = JSPUtil.checkAccessAndGetJob(
        tracker, jobId, request, response);
    if (!myJob.isViewJobAllowed()) {
      return;// user is not authorized to view this job
    }

    final boolean isMap = "map".equalsIgnoreCase(request.getParameter("type"));
    final TaskReport[] reports = isMap? tracker.getMapTaskReports(jobId)
View Full Code Here

TOP

Related Classes of org.apache.hadoop.mapred.JSPUtil.JobWithViewAccessCheck

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.