Java Code Examples for org.apache.flink.runtime.security.SecurityUtils#getInstalledContext()

The following examples show how to use org.apache.flink.runtime.security.SecurityUtils#getInstalledContext() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: YarnEntrypointUtils.java    From Flink-CEPplus with Apache License 2.0 3 votes vote down vote up
public static SecurityContext installSecurityContext(
		Configuration configuration,
		String workingDirectory) throws Exception {

	SecurityConfiguration sc = new SecurityConfiguration(configuration);

	SecurityUtils.install(sc);

	return SecurityUtils.getInstalledContext();
}
 
Example 2
Source File: ClusterEntrypoint.java    From Flink-CEPplus with Apache License 2.0 3 votes vote down vote up
protected SecurityContext installSecurityContext(Configuration configuration) throws Exception {
	LOG.info("Install security context.");

	SecurityUtils.install(new SecurityConfiguration(configuration));

	return SecurityUtils.getInstalledContext();
}
 
Example 3
Source File: YarnEntrypointUtils.java    From flink with Apache License 2.0 3 votes vote down vote up
public static SecurityContext installSecurityContext(
		Configuration configuration,
		String workingDirectory) throws Exception {

	SecurityConfiguration sc = new SecurityConfiguration(configuration);

	SecurityUtils.install(sc);

	return SecurityUtils.getInstalledContext();
}
 
Example 4
Source File: ClusterEntrypoint.java    From flink with Apache License 2.0 3 votes vote down vote up
protected SecurityContext installSecurityContext(Configuration configuration) throws Exception {
	LOG.info("Install security context.");

	SecurityUtils.install(new SecurityConfiguration(configuration));

	return SecurityUtils.getInstalledContext();
}
 
Example 5
Source File: ClusterEntrypoint.java    From flink with Apache License 2.0 3 votes vote down vote up
private SecurityContext installSecurityContext(Configuration configuration) throws Exception {
	LOG.info("Install security context.");

	SecurityUtils.install(new SecurityConfiguration(configuration));

	return SecurityUtils.getInstalledContext();
}