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 storm_conf)
Invoked once immediately after construction
|
String |
toLocal(Principal principal)
Convert a Principal to a local user name.
|
public void prepare(Map storm_conf)
Invoked once immediately after construction
prepare in interface IPrincipalToLocalstorm_conf - Storm configurationpublic String toLocal(Principal principal)
Convert a Principal to a local user name.
toLocal in interface IPrincipalToLocalprincipal - the principal to convertCopyright © 2019 The Apache Software Foundation. All Rights Reserved.