@InterfaceAudience.Public public final class TezUtils extends Object
Configuration
to UserPayload
etc.Modifier and Type | Method and Description |
---|---|
static void |
addLog4jSystemProperties(String logLevel,
List<String> vargs)
Allows changing the log level for task / AM logging.
|
static void |
addToConfFromByteString(org.apache.hadoop.conf.Configuration configuration,
com.google.protobuf.ByteString byteString) |
static String |
convertToHistoryText(org.apache.hadoop.conf.Configuration conf) |
static String |
convertToHistoryText(String description,
org.apache.hadoop.conf.Configuration conf) |
static com.google.protobuf.ByteString |
createByteStringFromConf(org.apache.hadoop.conf.Configuration conf)
Convert a Configuration to compressed ByteString using Protocol buffer
|
static org.apache.hadoop.conf.Configuration |
createConfFromBaseConfAndPayload(TaskContext context) |
static org.apache.hadoop.conf.Configuration |
createConfFromByteString(com.google.protobuf.ByteString byteString)
Convert a byte string to a Configuration object
|
static org.apache.hadoop.conf.Configuration |
createConfFromUserPayload(UserPayload payload)
Convert an instance of
UserPayload to Configuration |
static UserPayload |
createUserPayloadFromConf(org.apache.hadoop.conf.Configuration conf)
Convert a Configuration to a
UserPayload |
static void |
populateConfProtoFromEntries(Iterable<Map.Entry<String,String>> params,
org.apache.tez.dag.api.records.DAGProtos.ConfigurationProto.Builder confBuilder) |
public static void addLog4jSystemProperties(String logLevel, List<String> vargs)
ContainerLogAppender
.logLevel
- the desired log level (eg INFO/WARN/DEBUG)vargs
- the argument list to append topublic static com.google.protobuf.ByteString createByteStringFromConf(org.apache.hadoop.conf.Configuration conf) throws IOException
conf
- : Configuration to be convertedIOException
public static UserPayload createUserPayloadFromConf(org.apache.hadoop.conf.Configuration conf) throws IOException
UserPayload
conf
- configuration to be convertedUserPayload
IOException
public static org.apache.hadoop.conf.Configuration createConfFromByteString(com.google.protobuf.ByteString byteString) throws IOException
byteString
- byteString representation of the conf created using createByteStringFromConf(org.apache.hadoop.conf.Configuration)
IOException
public static org.apache.hadoop.conf.Configuration createConfFromBaseConfAndPayload(TaskContext context) throws IOException
IOException
public static void addToConfFromByteString(org.apache.hadoop.conf.Configuration configuration, com.google.protobuf.ByteString byteString) throws IOException
IOException
public static org.apache.hadoop.conf.Configuration createConfFromUserPayload(UserPayload payload) throws IOException
UserPayload
to Configuration
payload
- UserPayload
created using createUserPayloadFromConf(org.apache.hadoop.conf.Configuration)
IOException
public static String convertToHistoryText(String description, org.apache.hadoop.conf.Configuration conf)
public static String convertToHistoryText(org.apache.hadoop.conf.Configuration conf)
Copyright © 2024 Apache Software Foundation. All rights reserved.