@InterfaceAudience.Public public class TezUtils extends Object
Configuration to UserPayload etc.| Constructor and Description | 
|---|
TezUtils()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
addLog4jSystemProperties(String logLevel,
                        List<String> vargs)
Allows changing the log level for task / AM logging. 
 | 
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 | 
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 | 
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 convertedIOExceptionpublic static UserPayload createUserPayloadFromConf(org.apache.hadoop.conf.Configuration conf) throws IOException
UserPayload conf - configuration to be convertedUserPayloadIOExceptionpublic 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)IOExceptionpublic static org.apache.hadoop.conf.Configuration createConfFromUserPayload(UserPayload payload) throws IOException
UserPayload to Configurationpayload - UserPayload created using createUserPayloadFromConf(org.apache.hadoop.conf.Configuration)IOExceptionpublic static String convertToHistoryText(String description, org.apache.hadoop.conf.Configuration conf)
public static String convertToHistoryText(org.apache.hadoop.conf.Configuration conf)
Copyright © 2015 Apache Software Foundation. All rights reserved.