Package org.apache.hadoop.security

Examples of org.apache.hadoop.security.UserGroupInformation.split()


      rqst.setAttribute("org.apache.hadoop.hdfsproxy.authorized.userID", userID);
    } else if(rqst.getScheme().equalsIgnoreCase("http")) { // http request, set ugi for servlets, only for testing purposes
      String ugi = rqst.getParameter("ugi");
      if (ugi != null) {
        rqst.setAttribute("authorized.ugi", UserGroupInformation.createRemoteUser(ugi));
        rqst.setAttribute("org.apache.hadoop.hdfsproxy.authorized.userID", ugi.split(",")[0]);
      }
    }
    chain.doFilter(request, response);
  }
View Full Code Here


      rqst.setAttribute("org.apache.hadoop.hdfsproxy.authorized.userID", userID);
    } else if(rqst.getScheme().equalsIgnoreCase("http")) { // http request, set ugi for servlets, only for testing purposes
      String ugi = rqst.getParameter("ugi");
      if (ugi != null) {
        rqst.setAttribute("authorized.ugi", UserGroupInformation.createRemoteUser(ugi));
        rqst.setAttribute("org.apache.hadoop.hdfsproxy.authorized.userID", ugi.split(",")[0]);
      }
    }
    chain.doFilter(request, response);
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.