public class DefaultPrincipalToLocal extends Object implements IPrincipalToLocal
Storm can be configured to launch worker processed as a given user. Some transports need to map the Principal to a local user name.
| Constructor and Description |
|---|
DefaultPrincipalToLocal() |
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
|
String |
toLocal(String principal)
Convert a Principal to a local user name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoLocalpublic void prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
prepare in interface IPrincipalToLocaltopoConf - Storm configurationpublic String toLocal(String principal)
Convert a Principal to a local user name.
toLocal in interface IPrincipalToLocalprincipal - the principal to convertCopyright © 2021 The Apache Software Foundation. All rights reserved.