Package org.apache.drill.yarn.core
Class DoYUtil
java.lang.Object
org.apache.drill.yarn.core.DoYUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addNonEmpty
(List<String> list, String value) static double
callGetDiskIfExists
(Object target) static void
callSetDiskIfExists
(Object target, double arg) static String
describeContainer
(org.apache.hadoop.yarn.api.records.Container container) Utility method to display YARN container information in a useful way for log messages.static Object
dynamicCall
(Object target, String fnName, Object[] args, Class<?>[] types) static boolean
static String
static String
labelContainer
(org.apache.hadoop.yarn.api.records.Container container) static String
toIsoTime
(long timestamp) static String
unwrapAmUrl
(String trackingUrl) The tracking URL given to YARN is a redirect URL.
-
Method Details
-
join
-
addNonEmpty
-
isBlank
-
toIsoTime
-
labelContainer
-
describeContainer
Utility method to display YARN container information in a useful way for log messages.- Parameters:
container
-- Returns:
-
unwrapAmUrl
The tracking URL given to YARN is a redirect URL. When giving the URL to the user, "unwrap" that redirect URL to get the actual site URL.- Parameters:
trackingUrl
-- Returns:
-
dynamicCall
-
callSetDiskIfExists
-
callGetDiskIfExists
-