wangyang0918 commented on a change in pull request #9985: 
[FLINK-10968][kubernetes] Implement TaskManager Entrypoint for Kubernetes.
URL: https://github.com/apache/flink/pull/9985#discussion_r353029210
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunner.java
 ##########
 @@ -331,6 +311,25 @@ public static void runTaskManager(Configuration 
configuration, ResourceID resour
                taskManagerRunner.start();
        }
 
+       public static void runTaskManagerSecurely(String[] args, ResourceID 
resourceID) {
+               try {
+                       final Configuration configuration = 
loadConfiguration(args);
+
+                       FileSystem.initialize(configuration, 
PluginUtils.createPluginManagerFromRootFolder(configuration));
+
+                       SecurityUtils.install(new 
SecurityConfiguration(configuration));
+
+                       
SecurityUtils.getInstalledContext().runSecured((Callable<Void>) () -> {
 
 Review comment:
   Right. I will remove the `(Callable<Void>)`.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to