public class HadoopUserOverlay extends Object implements ContainerOverlay
The overlay essentially configures Hadoop's UserGroupInformation class, establishing
the effective username for filesystem calls to HDFS in non-secure clusters.
In secure clusters, the configured keytab establishes the effective user.
The following environment variables are set in the container: - HADOOP_USER_NAME
| Modifier and Type | Class and Description |
|---|---|
static class |
HadoopUserOverlay.Builder
A builder for the
HadoopUserOverlay. |
| Constructor and Description |
|---|
HadoopUserOverlay(org.apache.hadoop.security.UserGroupInformation ugi) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ContainerSpecification container)
Configure the given container specification.
|
static HadoopUserOverlay.Builder |
newBuilder() |
public HadoopUserOverlay(@Nullable org.apache.hadoop.security.UserGroupInformation ugi)
public void configure(ContainerSpecification container) throws IOException
ContainerOverlayconfigure in interface ContainerOverlayIOExceptionpublic static HadoopUserOverlay.Builder newBuilder()
Copyright © 2014–2022 The Apache Software Foundation. All rights reserved.