public class ContainerVolumePublisher extends Object
Constructor and Description |
---|
ContainerVolumePublisher(Container container,
String localMountRoot,
OCIContainerRuntime runtime) |
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
publishVolumes()
It first discovers the volume info from container resource;
then negotiates with CSI driver adaptor to publish the volume on this
node manager, on a specific directory under container's work dir;
and then map the local mounted directory to volume target mount in
the docker container.
|
void |
unpublishVolumes() |
public ContainerVolumePublisher(Container container, String localMountRoot, OCIContainerRuntime runtime)
public Map<String,String> publishVolumes() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
public void unpublishVolumes() throws org.apache.hadoop.yarn.exceptions.YarnException, IOException
org.apache.hadoop.yarn.exceptions.YarnException
IOException
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.