Package org.apache.flink.test.util
Class SecureTestEnvironment
java.lang.Object
org.apache.flink.test.util.SecureTestEnvironment
Helper
SecureTestEnvironment to handle MiniKDC lifecycle. This class can be used to
start/stop MiniKDC and create secure configurations for MiniDFSCluster and MiniYarn.
If you use this class in your project, please make sure to add a dependency to hadoop-minikdc, e.g. in your pom.xml:
...
<dependencies>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-minikdc</artifactId>
<version>${minikdc.version}</version>
<scope>compile</scope>
</dependency>
...
</dependencies>
...
<build>
<plugins>
<!--
https://issues.apache.org/jira/browse/DIRSHARED-134
Required to pull the Mini-KDC transitive dependency
-->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.0.1</version>
<inherited>true</inherited>
<extensions>true</extensions>
</plugin>
...
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LOG
protected static final org.slf4j.Logger LOG -
HOST_NAME
- See Also:
-
-
Constructor Details
-
SecureTestEnvironment
public SecureTestEnvironment()
-
-
Method Details
-
prepare
-
cleanup
public static void cleanup() -
populateFlinkSecureConfigurations
public static org.apache.flink.configuration.Configuration populateFlinkSecureConfigurations(@Nullable org.apache.flink.configuration.Configuration flinkConf) -
getClientSecurityConfigurationMap
-
getRealm
-
getTestKeytab
-
getHadoopServicePrincipal
-