Enable ACL in Yarn application in Apache Twill v0.10.0

94 Views Asked by At

I'm running a yarn application using Apache Twill (0.10.0) in a HDP 2.5 cluster. I cannot see any container logs when I go to a container webpage: enter image description here I suppose I need to set ACL from inside the application in the ContainerLaunchContext. Does Apache Twill expose some APIs to set the application ACL, to do something like this mentioned here:

Map<ApplicationAcessType, String>appAclDefinition = new HashMap<ApplicationAccessType, String>();
appAclDefinition.put(ApplicationAccessType.MODIFY_APP, "*");
appAclDefinition.put(ApplicationAccessType.VIEW_APP, "*");
// amContainer is an instance of ContainerLaunchContext
amContainer.setApplicationACLs(appAclDefinition);

Or there exists a workaround so that I can see my container logs?

0

There are 0 best solutions below