Class CsiConfigUtils

java.lang.Object
org.apache.hadoop.yarn.util.csi.CsiConfigUtils

public final class CsiConfigUtils extends Object
Utility class for CSI in the API level.
  • Method Details

    • getCsiDriverNames

      public static String[] getCsiDriverNames(org.apache.hadoop.conf.Configuration conf)
    • getCsiDriverEndpoint

      public static String getCsiDriverEndpoint(String driverName, org.apache.hadoop.conf.Configuration conf) throws YarnException
      Throws:
      YarnException
    • getCsiAdaptorAddressForDriver

      public static InetSocketAddress getCsiAdaptorAddressForDriver(String driverName, org.apache.hadoop.conf.Configuration conf) throws YarnException
      Resolve the CSI adaptor address for a CSI driver from configuration. Expected configuration property name is yarn.nodemanager.csi-driver-adaptor.${driverName}.address.
      Parameters:
      driverName - driver name.
      conf - configuration.
      Returns:
      adaptor service address
      Throws:
      YarnException - exceptions from yarn servers.