public final class ImpersonationUtils extends Object
Modifier and Type | Method and Description |
---|---|
static <T> T |
doAs(UserGroupInformation ugi,
Callable<T> callable)
Helper function, to unwrap any exceptions that were wrapped
by
UserGroupInformation.doAs(PrivilegedExceptionAction) |
public static <T> T doAs(UserGroupInformation ugi, Callable<T> callable) throws Exception
UserGroupInformation.doAs(PrivilegedExceptionAction)
Exception
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.