Package org.apache.hadoop.yarn.util.csi
Class CsiConfigUtils
java.lang.Object
org.apache.hadoop.yarn.util.csi.CsiConfigUtils
Utility class for CSI in the API level.
-
Method Summary
Modifier and TypeMethodDescriptionstatic InetSocketAddressgetCsiAdaptorAddressForDriver(String driverName, org.apache.hadoop.conf.Configuration conf) Resolve the CSI adaptor address for a CSI driver from configuration.static StringgetCsiDriverEndpoint(String driverName, org.apache.hadoop.conf.Configuration conf) static String[]getCsiDriverNames(org.apache.hadoop.conf.Configuration conf)
-
Method Details
-
getCsiDriverNames
-
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.
-