public interface 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.
| Modifier and Type | Method and Description |
|---|---|
void |
prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
|
default String |
toLocal(Principal principal)
Convert a Principal to a local user name.
|
String |
toLocal(String principalName) |
void prepare(Map<String,Object> topoConf)
Invoked once immediately after construction.
topoConf - Storm configurationdefault String toLocal(Principal principal)
Convert a Principal to a local user name.
principal - the principal to convertCopyright © 2021 The Apache Software Foundation. All rights reserved.