Package org.apache.hadoop.corona

Examples of org.apache.hadoop.corona.SessionInfo


      new TSocket(address.getHostName(), address.getPort()));
    TProtocol protocol = new TBinaryProtocol(transport);
    ClusterManagerService.Client client = new ClusterManagerService.Client(protocol);
    transport.open();
    LOG.info("Requesting running session info for handle: " + sessionHandle);
    SessionInfo info = client.getSessionInfo(sessionHandle);
    transport.close();
    return info;
  }
View Full Code Here


    private String getRunningJobUrl(HttpServletRequest request) {
      String jobIDParam = request.getParameter("jobid");
      if (jobIDParam == null) {
        return null;
      }
      SessionInfo sessionInfo;
      try {
        String sessionHandle = JobID.forName(jobIDParam).getJtIdentifier();
        sessionInfo = getRunningSessionInfo(sessionHandle);
      } catch (Exception e) {
        LOG.info("Failed to get running session info for jobid: " + jobIDParam
                  + ", exception: " + e.getMessage());
        return null;
      }
      return sessionInfo.getUrl();
    }
View Full Code Here

TOP

Related Classes of org.apache.hadoop.corona.SessionInfo

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.